Struct zaplib::PointerDownEvent
source · [−]pub struct PointerDownEvent {
pub window_id: usize,
pub abs: Vec2,
pub rel: Vec2,
pub rect: Rect,
pub digit: usize,
pub button: MouseButton,
pub tap_count: u32,
pub input_type: PointerInputType,
pub modifiers: KeyModifiers,
pub time: f64,
/* private fields */
}
Expand description
See Event::PointerDown
.
Fields
window_id: usize
abs: Vec2
rel: Vec2
TODO(JP): This is only set by Event::hits_pointer
; use an Option
or a different struct
?
rect: Rect
TODO(JP): This is only set by Event::hits_pointer
; use an Option
or a different struct
?
digit: usize
tap_count: u32
input_type: PointerInputType
modifiers: KeyModifiers
time: f64
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PointerDownEvent
impl Send for PointerDownEvent
impl Sync for PointerDownEvent
impl Unpin for PointerDownEvent
impl UnwindSafe for PointerDownEvent
Blanket Implementations
Mutably borrows from an owned value. Read more