Create window::Mode in iced_native

This commit is contained in:
Héctor Ramón Jiménez 2020-01-16 04:45:37 +01:00
parent a508b007d8
commit 1787377450
2 changed files with 11 additions and 0 deletions

View File

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

View File

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