pub struct PointerEvent { /* private fields */ }Implementations§
Source§impl PointerEvent
impl PointerEvent
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn pressure(&self) -> f32
pub fn tangential_pressure(&self) -> f32
pub fn tilt_x(&self) -> i32
pub fn tilt_y(&self) -> i32
pub fn twist(&self) -> i32
pub fn is_primary(&self) -> bool
pub fn pointer_id(&self) -> PointerId
pub fn pointer_type(&self) -> PointerType
Trait Implementations§
Source§impl AsRef<Event> for PointerEvent
impl AsRef<Event> for PointerEvent
Source§impl AsRef<MouseEvent> for PointerEvent
impl AsRef<MouseEvent> for PointerEvent
Source§fn as_ref(&self) -> &MouseEvent
fn as_ref(&self) -> &MouseEvent
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PointerEvent> for PointerEvent
impl AsRef<PointerEvent> for PointerEvent
Source§fn as_ref(&self) -> &PointerEvent
fn as_ref(&self) -> &PointerEvent
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<UiEvent> for PointerEvent
impl AsRef<UiEvent> for PointerEvent
Source§impl Event for PointerEvent
impl Event for PointerEvent
fn bubbles(&self) -> bool
fn cancelable(&self) -> bool
fn composed(&self) -> bool
fn is_trusted(&self) -> bool
fn default_prevented(&self) -> bool
fn event_phase(&self) -> EventPhase
fn event_type(&self) -> String
fn target(&self) -> Option<GenericEventTarget>
fn current_target(&self) -> Option<GenericEventTarget>
fn composed_path(&self) -> ComposedPath
fn prevent_default(&self)
fn stop_propagation(&self)
fn stop_immediate_propagation(&self)
Source§impl MouseEvent for PointerEvent
impl MouseEvent for PointerEvent
fn get_modifier_state(&self, key: &str) -> bool
fn screen_x(&self) -> i32
fn screen_y(&self) -> i32
fn client_x(&self) -> i32
fn client_y(&self) -> i32
fn ctrl_key(&self) -> bool
fn shift_key(&self) -> bool
fn alt_key(&self) -> bool
fn meta_key(&self) -> bool
fn region(&self) -> Option<String>
fn movement_x(&self) -> i32
fn movement_y(&self) -> i32
impl UiEvent 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