diff options
author | 2022-08-18 14:39:15 +0200 | |
---|---|---|
committer | 2022-08-18 14:39:15 +0200 | |
commit | 11f5527d7645619f49b030e30485f24ac637efbd (patch) | |
tree | 489f7cfbb134b8736290f30010fe680a31c90423 /native/src/window/mode.rs | |
parent | 277b848ad8df1e8d038e33707548a45d63a601db (diff) | |
download | iced-11f5527d7645619f49b030e30485f24ac637efbd.tar.gz iced-11f5527d7645619f49b030e30485f24ac637efbd.tar.bz2 iced-11f5527d7645619f49b030e30485f24ac637efbd.zip |
Implement `SetMode` and `FetchMode` window actions
Diffstat (limited to '')
-rw-r--r-- | native/src/window/mode.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/native/src/window/mode.rs b/native/src/window/mode.rs new file mode 100644 index 00000000..fdce8e23 --- /dev/null +++ b/native/src/window/mode.rs @@ -0,0 +1,12 @@ +/// The mode of a window-based application. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Mode { + /// The application appears in its own window. + Windowed, + + /// The application takes the whole screen of its current monitor. + Fullscreen, + + /// The application is hidden + Hidden, +} |