19 lines
596 B
Rust
19 lines
596 B
Rust
/// 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,
|
|
}
|