pub enum WindowCommand {
SetPlacement(WindowPlacement),
SetTitle(String),
SetSize(u32, u32),
SetPosition(i32, i32),
SetResizable(bool),
SetAlwaysOnTop(bool),
RequestAttention(UserAttentionKind),
Focus {
activation_token: Option<String>,
},
Close,
}Expand description
App → OS command produced by a WindowState signal observer.
Queued on WindowState and drained by
the app-level window manager after event dispatch. Application code
does not construct these directly; writing to a signal field on
WindowState is how you emit one.
Variants§
SetPlacement(WindowPlacement)
SetTitle(String)
SetSize(u32, u32)
SetPosition(i32, i32)
SetResizable(bool)
SetAlwaysOnTop(bool)
RequestAttention(UserAttentionKind)
Focus
Raise + focus this window. activation_token is an opaque
xdg_activation_v1 token carried across a process boundary for a Wayland
cross-process raise; None everywhere else, where focus_window
already suffices.
Close
Trait Implementations§
Source§impl Clone for WindowCommand
impl Clone for WindowCommand
Source§fn clone(&self) -> WindowCommand
fn clone(&self) -> WindowCommand
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 moreSource§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