pub enum WindowRole {
Drag,
Button(WindowButton),
}Expand description
Role a node plays in window chrome (set via NodeSpec::window_drag /
NodeSpec::window_button). Chrome nodes never emit UiEvents — their
interactions become WindowCommands for the driver instead.
Variants§
Drag
Mouse-down here asks the driver to start an OS window drag (drivers conventionally promote a quick second press to a maximize toggle).
Button(WindowButton)
Clicking here emits the button’s window command.
Trait Implementations§
Source§impl Clone for WindowRole
impl Clone for WindowRole
impl Copy for WindowRole
Source§impl Debug for WindowRole
impl Debug for WindowRole
impl Eq for WindowRole
Source§impl Hash for WindowRole
impl Hash for WindowRole
Source§impl PartialEq for WindowRole
impl PartialEq for WindowRole
impl StructuralPartialEq for WindowRole
Auto Trait Implementations§
impl Freeze for WindowRole
impl RefUnwindSafe for WindowRole
impl Send for WindowRole
impl Sync for WindowRole
impl Unpin for WindowRole
impl UnsafeUnpin for WindowRole
impl UnwindSafe for WindowRole
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.