iced_core/window/level.rs
1/// A window level groups windows with respect to their z-position.
2///
3/// The relative ordering between windows in different window levels is fixed.
4/// The z-order of a window within the same window level may change dynamically
5/// on user interaction.
6#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
7pub enum Level {
8 /// The default behavior.
9 #[default]
10 Normal,
11
12 /// The window will always be below normal windows.
13 ///
14 /// This is useful for a widget-based app.
15 AlwaysOnBottom,
16
17 /// The window will always be on top of normal windows.
18 AlwaysOnTop,
19}