summaryrefslogtreecommitdiffstats
path: root/native/src/window/mode.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-08-18 15:03:56 +0200
committerLibravatar GitHub <noreply@github.com>2022-08-18 15:03:56 +0200
commitda7e8598406fcde2a33ea749d561a2f10dbb5407 (patch)
tree489f7cfbb134b8736290f30010fe680a31c90423 /native/src/window/mode.rs
parent07cbed106467097543ff33d3b34e0e1ca6f695ae (diff)
parent11f5527d7645619f49b030e30485f24ac637efbd (diff)
downloadiced-da7e8598406fcde2a33ea749d561a2f10dbb5407.tar.gz
iced-da7e8598406fcde2a33ea749d561a2f10dbb5407.tar.bz2
iced-da7e8598406fcde2a33ea749d561a2f10dbb5407.zip
Merge pull request #1389 from iced-rs/refactor-window-mode
Replace `window::Mode` with window commands
Diffstat (limited to 'native/src/window/mode.rs')
-rw-r--r--native/src/window/mode.rs12
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,
+}