pub struct PointerKinds(pub u32);Expand description
Which kinds of pointer event a node subscribes to, as the bit mask the wire carries.
The bit of a kind is 1 << (tag - 1), so Move is 1 and ContextMenu is 128. A mask
of zero subscribes to nothing, and a node with no subscription gets no pointer input
at all, which is what keeps a screen of plain containers free of it.
Tuple Fields§
§0: u32Implementations§
Source§impl PointerKinds
impl PointerKinds
pub const NONE: Self
pub const MOVE: Self
pub const ENTER: Self
pub const LEAVE: Self
pub const DOWN: Self
pub const UP: Self
pub const CANCEL: Self
pub const WHEEL: Self
pub const CONTEXT_MENU: Self
Sourcepub const fn of(kind: PointerKind) -> Self
pub const fn of(kind: PointerKind) -> Self
The mask holding one kind.
Sourcepub const fn contains(self, kind: PointerKind) -> bool
pub const fn contains(self, kind: PointerKind) -> bool
Whether kind is in the mask.
pub const fn bits(self) -> u32
Trait Implementations§
Source§impl BitOr for PointerKinds
impl BitOr for PointerKinds
Source§impl Clone for PointerKinds
impl Clone for PointerKinds
impl Copy for PointerKinds
Source§impl Debug for PointerKinds
impl Debug for PointerKinds
Source§impl Default for PointerKinds
impl Default for PointerKinds
impl Eq for PointerKinds
Source§impl PartialEq for PointerKinds
impl PartialEq for PointerKinds
impl StructuralPartialEq for PointerKinds
Auto Trait Implementations§
impl Freeze for PointerKinds
impl RefUnwindSafe for PointerKinds
impl Send for PointerKinds
impl Sync for PointerKinds
impl Unpin for PointerKinds
impl UnsafeUnpin for PointerKinds
impl UnwindSafe for PointerKinds
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