From 11f5527d7645619f49b030e30485f24ac637efbd Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 18 Aug 2022 14:39:15 +0200 Subject: Implement `SetMode` and `FetchMode` window actions --- native/src/window/mode.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 native/src/window/mode.rs (limited to 'native/src/window/mode.rs') 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, +} -- cgit