diff options
author | 2020-09-28 21:05:15 -0700 | |
---|---|---|
committer | 2020-09-28 21:05:15 -0700 | |
commit | f2247a70dc791536e2acc26c6e928c89a38a4a95 (patch) | |
tree | 406b3b01eba0e3dabb13ac58915e11c08c75b3df /src | |
parent | 4f2962d73f3bdeeca8a11817e404c45e91e2c2cc (diff) | |
download | iced-f2247a70dc791536e2acc26c6e928c89a38a4a95.tar.gz iced-f2247a70dc791536e2acc26c6e928c89a38a4a95.tar.bz2 iced-f2247a70dc791536e2acc26c6e928c89a38a4a95.zip |
Fixes #539: Allow windows to be set always_on_top
Diffstat (limited to 'src')
-rw-r--r-- | src/window/settings.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/window/settings.rs b/src/window/settings.rs index 7bc49ce1..6b5d2985 100644 --- a/src/window/settings.rs +++ b/src/window/settings.rs @@ -18,9 +18,12 @@ pub struct Settings { /// Whether the window should have a border, a title bar, etc. or not. pub decorations: bool, - /// Whether the window should be transparent + /// Whether the window should be transparent. pub transparent: bool, + /// Whether the window will always be on top of other windows. + pub always_on_top: bool, + /// The icon of the window. pub icon: Option<Icon>, } @@ -34,6 +37,7 @@ impl Default for Settings { resizable: true, decorations: true, transparent: false, + always_on_top: false, icon: None, } } @@ -49,6 +53,7 @@ impl From<Settings> for iced_winit::settings::Window { resizable: settings.resizable, decorations: settings.decorations, transparent: settings.transparent, + always_on_top: settings.always_on_top, icon: settings.icon.map(Icon::into), platform_specific: Default::default(), } |