Expose window::Mode in iced

Although the Fullscreen API in the Web platform has some limitations, it
is still useful to be able to support fullscreen on the native side.
This commit is contained in:
Héctor Ramón Jiménez 2020-01-16 05:54:22 +01:00
parent d6b20d3e79
commit c96492b956
11 changed files with 81 additions and 42 deletions

View file

@ -1,8 +1,6 @@
//! 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

@ -1,9 +0,0 @@
/// 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,
}