diff options
| author | 2020-01-11 00:44:56 +0100 | |
|---|---|---|
| committer | 2020-01-11 00:44:56 +0100 | |
| commit | de71776e02495df5dc962fb8b8853f666ab8be4f (patch) | |
| tree | 1f87cc68dc554783c6102f3587377f9956bcddba /winit/src/settings | |
| parent | e879982cfdf0c6a1c6781a9bc46e0a77839de88f (diff) | |
| parent | 84f1a936db93c16255a07f079c47e351635586f4 (diff) | |
| download | iced-de71776e02495df5dc962fb8b8853f666ab8be4f.tar.gz iced-de71776e02495df5dc962fb8b8853f666ab8be4f.tar.bz2 iced-de71776e02495df5dc962fb8b8853f666ab8be4f.zip  | |
Merge branch 'master' into paint-example
Diffstat (limited to '')
| -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 {  | 
