diff options
author | 2020-03-31 17:49:56 +0200 | |
---|---|---|
committer | 2020-03-31 17:49:56 +0200 | |
commit | e79e832092385346beec47f63e40f24800c535f8 (patch) | |
tree | c29df36b1987de66a58cfb981c5958d25712d51e /winit/src/settings/mod.rs | |
parent | 327347501c78a1c8e55a39fe1b5d54d7c2fcbcab (diff) | |
parent | f0ebcc24742aba79cc779a4145a188f2534a5e35 (diff) | |
download | iced-e79e832092385346beec47f63e40f24800c535f8.tar.gz iced-e79e832092385346beec47f63e40f24800c535f8.tar.bz2 iced-e79e832092385346beec47f63e40f24800c535f8.zip |
Merge pull request #246 from hecrj/feature/application-flags
Application flags
Diffstat (limited to 'winit/src/settings/mod.rs')
-rw-r--r-- | winit/src/settings/mod.rs | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/winit/src/settings/mod.rs b/winit/src/settings/mod.rs deleted file mode 100644 index b2290b46..00000000 --- a/winit/src/settings/mod.rs +++ /dev/null @@ -1,53 +0,0 @@ -//! Configure your application. -#[cfg(target_os = "windows")] -#[path = "windows.rs"] -mod platform; -#[cfg(not(target_os = "windows"))] -#[path = "not_windows.rs"] -mod platform; - -pub use platform::PlatformSpecific; - -/// The settings of an application. -#[derive(Debug, Clone, Copy, PartialEq)] -pub struct Settings { - /// The [`Window`] settings - /// - /// [`Window`]: struct.Window.html - 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 { - /// The size of the window. - pub size: (u32, u32), - - /// Whether the window should be resizable or not. - pub resizable: bool, - - /// Whether the window should have a border, a title bar, etc. - pub decorations: bool, - - /// Platform specific settings. - pub platform_specific: platform::PlatformSpecific, -} - -impl Default for Window { - fn default() -> Window { - Window { - size: (1024, 768), - resizable: true, - decorations: true, - platform_specific: Default::default(), - } - } -} |