diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/application.rs | 2 | ||||
-rw-r--r-- | src/executor.rs | 2 | ||||
-rw-r--r-- | src/sandbox.rs | 3 | ||||
-rw-r--r-- | src/window/settings.rs | 7 |
4 files changed, 9 insertions, 5 deletions
diff --git a/src/application.rs b/src/application.rs index d46cd2ac..d9e25ad4 100644 --- a/src/application.rs +++ b/src/application.rs @@ -65,7 +65,7 @@ use crate::{Color, Command, Element, Executor, Settings, Subscription}; /// struct Hello; /// /// impl Application for Hello { -/// type Executor = executor::Null; +/// type Executor = executor::Default; /// type Message = (); /// type Flags = (); /// diff --git a/src/executor.rs b/src/executor.rs index 59d59a5a..ea6ab14a 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -1,5 +1,5 @@ //! Choose your preferred executor to power your application. -pub use crate::runtime::{executor::Null, Executor}; +pub use crate::runtime::Executor; pub use platform::Default; diff --git a/src/sandbox.rs b/src/sandbox.rs index c72b58d8..5a668e39 100644 --- a/src/sandbox.rs +++ b/src/sandbox.rs @@ -1,4 +1,3 @@ -use crate::executor; use crate::{ Application, Color, Command, Element, Error, Settings, Subscription, }; @@ -172,7 +171,7 @@ impl<T> Application for T where T: Sandbox, { - type Executor = executor::Null; + type Executor = crate::runtime::executor::Null; type Flags = (); type Message = T::Message; 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(), } |