Skip to content

Commit

Permalink
WindowDesc::with_config
Browse files Browse the repository at this point in the history
  • Loading branch information
maan2003 committed Aug 20, 2021
1 parent 8738ff7 commit f049b88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions druid/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,12 @@ impl<T: Data> WindowDesc<T> {
self
}

/// Set the [`WindowConfig`] of window.
pub fn with_config(mut self, config: WindowConfig) -> Self {
self.config = config;
self
}

/// Attempt to create a platform window from this `WindowDesc`.
pub(crate) fn build_native(
self,
Expand Down

0 comments on commit f049b88

Please sign in to comment.