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 22, 2021
1 parent 9792c5a commit 5248f67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ You can find its changes [documented below](#070---2021-01-01).
- Widget/Slider: Add stepping functionality ([#1875] by [@raymanfx])
- Add #[data(eq)] shorthand attribute for Data derive macro ([#1884] by [@Maan2003])
- X11: detect keyboard layout ([#1779] by [@Maan2003])
- WindowDesc::with_config ([#1929] by [@Maan2003])

### Changed

Expand Down Expand Up @@ -782,6 +783,7 @@ Last release without a changelog :(
[#1885]: https://github.com/linebender/druid/pull/1885
[#1886]: https://github.com/linebender/druid/pull/1886
[#1907]: https://github.com/linebender/druid/pull/1907
[#1929]: https://github.com/linebender/druid/pull/1929

[Unreleased]: https://github.com/linebender/druid/compare/v0.7.0...master
[0.7.0]: https://github.com/linebender/druid/compare/v0.6.0...v0.7.0
Expand Down
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 5248f67

Please sign in to comment.