pub struct PointerEventInfo {
pub x: f64,
pub y: f64,
pub window_x: f64,
pub window_y: f64,
pub capture_succeeded: bool,
pub is_left_button_pressed: bool,
pub is_right_button_pressed: bool,
pub is_middle_button_pressed: bool,
}Expand description
Pointer state in element-local and window-relative device-independent pixels.
Fields§
§x: f64§y: f64§window_x: f64§window_y: f64§capture_succeeded: boolTrait Implementations§
Source§impl Clone for PointerEventInfo
impl Clone for PointerEventInfo
Source§fn clone(&self) -> PointerEventInfo
fn clone(&self) -> PointerEventInfo
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 PointerEventInfo
Source§impl Debug for PointerEventInfo
impl Debug for PointerEventInfo
Source§impl Default for PointerEventInfo
impl Default for PointerEventInfo
Source§fn default() -> PointerEventInfo
fn default() -> PointerEventInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for PointerEventInfo
impl PartialEq for PointerEventInfo
impl StructuralPartialEq for PointerEventInfo
Auto Trait Implementations§
impl Freeze for PointerEventInfo
impl RefUnwindSafe for PointerEventInfo
impl Send for PointerEventInfo
impl Sync for PointerEventInfo
impl Unpin for PointerEventInfo
impl UnsafeUnpin for PointerEventInfo
impl UnwindSafe for PointerEventInfo
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