pub enum WindowCommand {
SetTitle(String),
SetBackground(Rgba),
SetSize {
width: u32,
height: u32,
},
Minimize,
Maximize,
Unmaximize,
SetFullscreen(bool),
Center,
Focus,
Close,
StartDrag,
SetAlwaysOnTop(bool),
}Expand description
A command queued for execution on the native UI thread.
Variants§
SetTitle(String)
Replace the native window title.
SetBackground(Rgba)
Replace the native pre-paint and web document background.
SetSize
Resize the window’s content area, in logical pixels.
Minimize
Minimize the window to the dock or taskbar.
Maximize
Maximize the window to fill the work area.
Unmaximize
Restore the window from the maximized state.
SetFullscreen(bool)
Enter or leave native fullscreen.
Center
Center the window on its current display.
Focus
Raise the window and give it keyboard focus.
Close
Close the window, firing WindowCloseRequested first.
StartDrag
Begin a host-driven window drag, used by webui-drag regions.
SetAlwaysOnTop(bool)
Pin the window above or below other windows.
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 Freeze for WindowCommand
impl RefUnwindSafe for WindowCommand
impl Send for WindowCommand
impl Sync for WindowCommand
impl Unpin for WindowCommand
impl UnsafeUnpin for WindowCommand
impl UnwindSafe for WindowCommand
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