diff options
| author | 2020-01-16 05:54:22 +0100 | |
|---|---|---|
| committer | 2020-01-16 05:54:22 +0100 | |
| commit | c96492b95660640eb2dd66a77c96ad32d5d5b0ae (patch) | |
| tree | d072f613ac78a7389456681b48650badaca8d60b /winit/src/application.rs | |
| parent | d6b20d3e796951e6b42726fddc78fbb1b9aaa094 (diff) | |
| download | iced-c96492b95660640eb2dd66a77c96ad32d5d5b0ae.tar.gz iced-c96492b95660640eb2dd66a77c96ad32d5d5b0ae.tar.bz2 iced-c96492b95660640eb2dd66a77c96ad32d5d5b0ae.zip | |
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.
Diffstat (limited to 'winit/src/application.rs')
| -rw-r--r-- | winit/src/application.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/winit/src/application.rs b/winit/src/application.rs index 3de0476f..9e8eaebb 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -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`]. | 
