pub struct PointerEventArgs {Show 20 fields
pub event_type: PointerEventType,
pub scene_x: f32,
pub scene_y: f32,
pub x: f32,
pub y: f32,
pub modifiers: u32,
pub pointer_id: i32,
pub pointer_type: PointerType,
pub button: PointerButton,
pub buttons: PointerButtons,
pub pressure: f32,
pub width: f32,
pub height: f32,
pub click_count: i32,
pub is_primary: bool,
pub tangential_pressure: f32,
pub tilt_x: f32,
pub tilt_y: f32,
pub twist: f32,
pub handled: bool,
/* private fields */
}Fields§
§event_type: PointerEventType§scene_x: f32§scene_y: f32§x: f32§y: f32§modifiers: u32§pointer_id: i32§pointer_type: PointerType§pressure: f32§width: f32§height: f32§click_count: i32§is_primary: bool§tangential_pressure: f32§tilt_x: f32§tilt_y: f32§twist: f32§handled: boolImplementations§
Source§impl PointerEventArgs
impl PointerEventArgs
pub fn new( target_handle: NodeHandle, event_type: PointerEventType, scene_x: f32, scene_y: f32, modifiers: u32, pointer_id: i32, pointer_type: PointerType, button: i32, buttons: u32, pressure: f32, width: f32, height: f32, click_count: i32, ) -> Self
pub fn capture_pointer(&self)
pub fn release_pointer_capture(&self)
Trait Implementations§
Source§impl Clone for PointerEventArgs
impl Clone for PointerEventArgs
Source§fn clone(&self) -> PointerEventArgs
fn clone(&self) -> PointerEventArgs
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 moreAuto Trait Implementations§
impl Freeze for PointerEventArgs
impl RefUnwindSafe for PointerEventArgs
impl Send for PointerEventArgs
impl Sync for PointerEventArgs
impl Unpin for PointerEventArgs
impl UnsafeUnpin for PointerEventArgs
impl UnwindSafe for PointerEventArgs
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