pub struct WindowManager { /* private fields */ }Implementations§
Source§impl WindowManager
impl WindowManager
pub fn show( &self, options: WindowOptions, view: impl for<'scope, 'context> Fn(&mut RenderCx<'scope, 'context>) -> Element + Send + Sync + 'static, ) -> bool
pub fn hide(&self, id: impl Into<WindowId>) -> bool
pub fn toggle( &self, options: WindowOptions, view: impl for<'scope, 'context> Fn(&mut RenderCx<'scope, 'context>) -> Element + Send + Sync + 'static, ) -> bool
pub fn close(&self, id: impl Into<WindowId>) -> bool
pub fn request_close(&self, id: impl Into<WindowId>) -> bool
pub fn minimize(&self, id: impl Into<WindowId>) -> bool
pub fn set_scale_preference(&self, preference: ScalePreference) -> bool
pub fn set_mode(&self, id: impl Into<WindowId>, mode: WindowMode) -> bool
pub fn send_input(&self, id: impl Into<WindowId>, input: InputEvent) -> bool
pub fn exit(&self) -> bool
Trait Implementations§
Source§impl Clone for WindowManager
impl Clone for WindowManager
Source§fn clone(&self) -> WindowManager
fn clone(&self) -> WindowManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WindowManager
impl RefUnwindSafe for WindowManager
impl Send for WindowManager
impl Sync for WindowManager
impl Unpin for WindowManager
impl UnsafeUnpin for WindowManager
impl UnwindSafe for WindowManager
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