diff options
author | 2020-01-09 18:46:06 +0100 | |
---|---|---|
committer | 2020-01-09 18:46:06 +0100 | |
commit | 0a8302450557877cb667b51fc84383aaf0a11b02 (patch) | |
tree | fe3a8a6b0ae82f7fd1fa0c0de34b4b09d0b9edda /winit/src/settings/mod.rs | |
parent | 6699329d3f91c5b9d8e8e55ad88de24bd3894955 (diff) | |
parent | 7b278755fc7929633b5771824beac4d39b16e82e (diff) | |
download | iced-0a8302450557877cb667b51fc84383aaf0a11b02.tar.gz iced-0a8302450557877cb667b51fc84383aaf0a11b02.tar.bz2 iced-0a8302450557877cb667b51fc84383aaf0a11b02.zip |
Merge pull request #146 from hecrj/feature/custom-styling
Custom styling
Diffstat (limited to 'winit/src/settings/mod.rs')
-rw-r--r-- | winit/src/settings/mod.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/winit/src/settings/mod.rs b/winit/src/settings/mod.rs index 58e3d879..b2290b46 100644 --- a/winit/src/settings/mod.rs +++ b/winit/src/settings/mod.rs @@ -1,5 +1,4 @@ //! Configure your application. - #[cfg(target_os = "windows")] #[path = "windows.rs"] mod platform; @@ -10,7 +9,7 @@ mod platform; pub use platform::PlatformSpecific; /// The settings of an application. -#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] +#[derive(Debug, Clone, Copy, PartialEq)] pub struct Settings { /// The [`Window`] settings /// @@ -18,6 +17,14 @@ pub struct Settings { pub window: Window, } +impl Default for Settings { + fn default() -> Settings { + Settings { + window: Window::default(), + } + } +} + /// The window settings of an application. #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct Window { |