pub struct PointerId(/* private fields */);Expand description
Provider-neutral pointer identifier.
Identifiers are stable within one logical window presentation generation.
§Examples
use ailloli_ui_core::event::PointerId;
assert_eq!(PointerId::new(7).get(), 7);Implementations§
Source§impl PointerId
impl PointerId
Sourcepub const MOUSE: Self
pub const MOUSE: Self
Conventional identifier used by the compatibility mouse event path.
§Examples
use ailloli_ui_core::event::PointerId;
assert_eq!(PointerId::MOUSE.get(), 0);Trait Implementations§
Source§impl Ord for PointerId
impl Ord for PointerId
Source§impl PartialOrd for PointerId
impl PartialOrd for PointerId
impl Copy for PointerId
impl Eq for PointerId
impl StructuralPartialEq for PointerId
Auto Trait Implementations§
impl Freeze for PointerId
impl RefUnwindSafe for PointerId
impl Send for PointerId
impl Sync for PointerId
impl Unpin for PointerId
impl UnwindSafe for PointerId
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