forked from iced-rs/iced
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
... and add `level` field to `window::Settings`
- Loading branch information
Showing
5 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/// A window level groups windows with respect to their z-position. | ||
/// | ||
/// The relative ordering between windows in different window levels is fixed. | ||
/// The z-order of a window within the same window level may change dynamically | ||
/// on user interaction. | ||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] | ||
pub enum Level { | ||
/// The default behavior. | ||
#[default] | ||
Normal, | ||
|
||
/// The window will always be below normal windows. | ||
/// | ||
/// This is useful for a widget-based app. | ||
AlwaysOnBottom, | ||
|
||
/// The window will always be on top of normal windows. | ||
AlwaysOnTop, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters