diff options
-rw-r--r-- | native/src/window.rs | 2 | ||||
-rw-r--r-- | native/src/window/mode.rs | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/native/src/window.rs b/native/src/window.rs index db9226dc..7e30c782 100644 --- a/native/src/window.rs +++ b/native/src/window.rs @@ -1,6 +1,8 @@ //! Build window-based GUI applications. mod event; +mod mode; mod renderer; pub use event::Event; +pub use mode::Mode; pub use renderer::{Renderer, Target}; 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, +} |