#[repr(C)]pub enum BackendMouseEvent {
Pressed {
position: LogicalPoint,
button: PointerEventButton,
click_count: u8,
touch_finger_id: i32,
},
Released {
position: LogicalPoint,
button: PointerEventButton,
click_count: u8,
touch_finger_id: i32,
},
Moved {
position: LogicalPoint,
touch_finger_id: i32,
},
Wheel {
position: LogicalPoint,
delta_x: Coord,
delta_y: Coord,
phase: TouchPhase,
},
PinchGesture {
position: LogicalPoint,
delta: f32,
phase: TouchPhase,
},
RotationGesture {
position: LogicalPoint,
delta: f32,
phase: TouchPhase,
},
Exit,
}Expand description
The mouse events a backend can deliver to the runtime.
Variants§
Pressed
The mouse or finger was pressed
Released
The mouse or finger was released
Moved
The position of the pointer has changed
Wheel
Wheel was operated.
PinchGesture
A platform-recognized pinch gesture (macOS/iOS trackpad, Qt).
RotationGesture
A platform-recognized rotation gesture (macOS/iOS trackpad, Qt).
Exit
The mouse exited the item or component
Trait Implementations§
Source§impl Clone for BackendMouseEvent
impl Clone for BackendMouseEvent
Source§fn clone(&self) -> BackendMouseEvent
fn clone(&self) -> BackendMouseEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BackendMouseEvent
Source§impl Debug for BackendMouseEvent
impl Debug for BackendMouseEvent
Source§impl From<BackendMouseEvent> for MouseEvent
impl From<BackendMouseEvent> for MouseEvent
Source§fn from(event: BackendMouseEvent) -> Self
fn from(event: BackendMouseEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BackendMouseEvent
impl PartialEq for BackendMouseEvent
impl StructuralPartialEq for BackendMouseEvent
Auto Trait Implementations§
impl Freeze for BackendMouseEvent
impl RefUnwindSafe for BackendMouseEvent
impl Send for BackendMouseEvent
impl Sync for BackendMouseEvent
impl Unpin for BackendMouseEvent
impl UnsafeUnpin for BackendMouseEvent
impl UnwindSafe for BackendMouseEvent
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