pub enum WindowCommand {
Show 14 variants
SetTitle(WindowId, String),
SetSize(WindowId, u32, u32),
SetPosition(WindowId, i32, i32),
SetResizable(WindowId, bool),
SetDecorations(WindowId, bool),
SetAlwaysOnTop(WindowId, bool),
SetFullscreen(WindowId, FullscreenMode),
SetVisible(WindowId, bool),
SetCursor(WindowId, CursorIcon),
SetIme(WindowId, bool, Rect),
SetStatusBarStyle(WindowId, StatusBarStyle),
RequestRedraw(WindowId),
SetRenderMode(WindowId, RenderMode),
Close(WindowId),
}Expand description
Cross-platform imperative window command queued for execution by the platform backend.
Variants§
SetTitle(WindowId, String)
Update window or document title.
SetSize(WindowId, u32, u32)
Resize window to logical (width, height).
SetPosition(WindowId, i32, i32)
Move window to screen (x, y).
SetResizable(WindowId, bool)
Toggle window resizability.
SetDecorations(WindowId, bool)
Toggle window OS decorations.
SetAlwaysOnTop(WindowId, bool)
Toggle always-on-top z-order.
SetFullscreen(WindowId, FullscreenMode)
Change fullscreen presentation mode.
SetVisible(WindowId, bool)
Toggle window visibility.
SetCursor(WindowId, CursorIcon)
Update active pointer cursor icon.
SetIme(WindowId, bool, Rect)
Toggle IME / mobile soft keyboard visibility and target rect.
SetStatusBarStyle(WindowId, StatusBarStyle)
Update mobile/iPadOS status bar style.
RequestRedraw(WindowId)
Request an immediate redraw frame.
SetRenderMode(WindowId, RenderMode)
Switch active render mode dynamically (Auto, Software, Hardware, Hybrid).
Close(WindowId)
Close the target window.
Trait Implementations§
Source§impl Clone for WindowCommand
impl Clone for WindowCommand
Source§impl Debug for WindowCommand
impl Debug for WindowCommand
Source§impl PartialEq for WindowCommand
impl PartialEq for WindowCommand
impl StructuralPartialEq for WindowCommand
Auto Trait Implementations§
impl Forget for WindowCommand
impl Freeze for WindowCommand
impl Move for WindowCommand
impl RefUnwindSafe for WindowCommand
impl Send for WindowCommandwhere
RawVecInner: Send,
impl Sync for WindowCommandwhere
RawVecInner: Sync,
impl Unpin for WindowCommand
impl UnsafeUnpin for WindowCommand
impl UnwindSafe for WindowCommandwhere
RawVecInner: UnwindSafe,
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