summaryrefslogtreecommitdiffstats
path: root/native/src/window/mode.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-16 04:45:37 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-16 04:45:37 +0100
commit17873774502b20cdcaaf96f88f6f6c705f91e15c (patch)
treedad0f6be63654d2f1f4cc122ca9b40ede7719e31 /native/src/window/mode.rs
parenta508b007d8c00e16aaf44b1968b89cf0908c3a51 (diff)
downloadiced-17873774502b20cdcaaf96f88f6f6c705f91e15c.tar.gz
iced-17873774502b20cdcaaf96f88f6f6c705f91e15c.tar.bz2
iced-17873774502b20cdcaaf96f88f6f6c705f91e15c.zip
Create `window::Mode` in `iced_native`
Diffstat (limited to 'native/src/window/mode.rs')
-rw-r--r--native/src/window/mode.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/native/src/window/mode.rs b/native/src/window/mode.rs
new file mode 100644
index 00000000..37464711
--- /dev/null
+++ b/native/src/window/mode.rs
@@ -0,0 +1,9 @@
+/// 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,
+}