Implement SetMode and FetchMode window actions

This commit is contained in:
Héctor Ramón Jiménez 2022-08-18 14:39:15 +02:00
parent 277b848ad8
commit 11f5527d76
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
7 changed files with 123 additions and 5 deletions

12
native/src/window/mode.rs Normal file
View file

@ -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,
}