pub struct BrowserWindowingPlatform;Expand description
The windowing platform of the browser. There are no windows: content is shown by a view over an element of the page.
Implementations§
Source§impl BrowserWindowingPlatform
impl BrowserWindowingPlatform
Sourcepub fn global_this() -> JsObject
pub fn global_this() -> JsObject
Sourcepub fn keyboard() -> Rc<KeyboardDevice>
pub fn keyboard() -> Rc<KeyboardDevice>
The keyboard device of the platform.
§Panics
Panics when the windowing platform has not been registered.
Trait Implementations§
Source§impl Default for BrowserWindowingPlatform
impl Default for BrowserWindowingPlatform
Source§impl IWindowingPlatform for BrowserWindowingPlatform
impl IWindowingPlatform for BrowserWindowingPlatform
Source§fn create_window(&self) -> Rc<dyn IWindowImpl>
fn create_window(&self) -> Rc<dyn IWindowImpl>
Creates a window.
Source§fn create_embeddable_top_level(&self) -> Rc<dyn ITopLevelImpl>
fn create_embeddable_top_level(&self) -> Rc<dyn ITopLevelImpl>
Creates a top-level that can be embedded into a foreign window.
Source§fn create_embeddable_window(&self) -> Rc<dyn IWindowImpl>
fn create_embeddable_window(&self) -> Rc<dyn IWindowImpl>
Creates a window that can be embedded into a foreign window.
Source§fn create_tray_icon(&self) -> Option<Rc<dyn ITrayIconImpl>>
fn create_tray_icon(&self) -> Option<Rc<dyn ITrayIconImpl>>
Creates a tray icon, if the platform supports them.
Source§fn get_windows_z_order(
&self,
_windows: &[Rc<dyn IWindowImpl>],
_z_order: &mut [i64],
)
fn get_windows_z_order( &self, _windows: &[Rc<dyn IWindowImpl>], _z_order: &mut [i64], )
Fills
z_order with the z-order of each of windows; a window with
a higher value is above a window with a lower one. Read moreAuto Trait Implementations§
impl Freeze for BrowserWindowingPlatform
impl RefUnwindSafe for BrowserWindowingPlatform
impl Send for BrowserWindowingPlatform
impl Sync for BrowserWindowingPlatform
impl Unpin for BrowserWindowingPlatform
impl UnsafeUnpin for BrowserWindowingPlatform
impl UnwindSafe for BrowserWindowingPlatform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more