#[repr(C)]pub struct PointerEvent {
pub button: PointerEventButton,
pub kind: PointerEventKind,
pub modifiers: KeyboardModifiers,
}
Expand description
Represents a Pointer event sent by the windowing system.
This structure is passed to the pointer-event
callback of the TouchArea
element.
Fields§
The button that was pressed or released
kind: PointerEventKind
The kind of the event
modifiers: KeyboardModifiers
The keyboard modifiers pressed during the event
Trait Implementations§
Source§impl Clone for PointerEvent
impl Clone for PointerEvent
Source§fn clone(&self) -> PointerEvent
fn clone(&self) -> PointerEvent
Returns a copy of the value. Read more
1.0.0 · 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 PointerEvent
impl Debug for PointerEvent
Source§impl Default for PointerEvent
impl Default for PointerEvent
Source§fn default() -> PointerEvent
fn default() -> PointerEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for PointerEvent
impl PartialEq for PointerEvent
impl StructuralPartialEq for PointerEvent
Auto Trait Implementations§
impl Freeze for PointerEvent
impl RefUnwindSafe for PointerEvent
impl Send for PointerEvent
impl Sync for PointerEvent
impl Unpin for PointerEvent
impl UnwindSafe for PointerEvent
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