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
|
|
@ -2,7 +2,7 @@ use crate::{
|
|||
conversion,
|
||||
input::{keyboard, mouse},
|
||||
subscription, window, Cache, Clipboard, Command, Debug, Element, Event,
|
||||
MouseCursor, Settings, Size, Subscription, UserInterface,
|
||||
Mode, MouseCursor, Settings, Size, Subscription, UserInterface,
|
||||
};
|
||||
|
||||
/// An interactive, native cross-platform application.
|
||||
|
|
@ -80,8 +80,8 @@ pub trait Application: Sized {
|
|||
/// By default, an application will run in windowed mode.
|
||||
///
|
||||
/// [`Application`]: trait.Application.html
|
||||
fn mode(&self) -> window::Mode {
|
||||
window::Mode::Windowed
|
||||
fn mode(&self) -> Mode {
|
||||
Mode::Windowed
|
||||
}
|
||||
|
||||
/// Runs the [`Application`].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue