From c96492b95660640eb2dd66a77c96ad32d5d5b0ae Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 16 Jan 2020 05:54:22 +0100 Subject: 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. --- winit/src/application.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winit/src/application.rs') 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`]. -- cgit