diff options
author | 2019-12-03 07:38:03 +0100 | |
---|---|---|
committer | 2019-12-03 07:38:03 +0100 | |
commit | 60b32a9fed67acfd3e3ab8b9aa204853664ffd04 (patch) | |
tree | 1b4b177e0a16fca8be52791a6afb907c8d4ec82d /winit/src/settings.rs | |
parent | ff0dc44cd7847bf6b1754b5f3b4d1ee53377bc49 (diff) | |
parent | 7756081fdbc93aee3f5d11fbd14e3d9f2cbefe57 (diff) | |
download | iced-60b32a9fed67acfd3e3ab8b9aa204853664ffd04.tar.gz iced-60b32a9fed67acfd3e3ab8b9aa204853664ffd04.tar.bz2 iced-60b32a9fed67acfd3e3ab8b9aa204853664ffd04.zip |
Merge pull request #94 from hatoo/improve-setting
Improve window setting
Diffstat (limited to 'winit/src/settings.rs')
-rw-r--r-- | winit/src/settings.rs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/winit/src/settings.rs b/winit/src/settings.rs deleted file mode 100644 index d257ecd8..00000000 --- a/winit/src/settings.rs +++ /dev/null @@ -1,29 +0,0 @@ -//! Configure your application. - -/// The settings of an application. -#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] -pub struct Settings { - /// The [`Window`] settings - /// - /// [`Window`]: struct.Window.html - pub window: Window, -} - -/// The window settings of an application. -#[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub struct Window { - /// The size of the window. - pub size: (u32, u32), - - /// Whether the window should be resizable or not. - pub resizable: bool, -} - -impl Default for Window { - fn default() -> Window { - Window { - size: (1024, 768), - resizable: true, - } - } -} |