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:
parent
d6b20d3e79
commit
c96492b956
11 changed files with 81 additions and 42 deletions
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue