pub struct Pointer { /* private fields */ }Implementations§
Source§impl Pointer
impl Pointer
pub fn from_document() -> Pointer
pub fn from_element(element_id: &str) -> Pointer
pub fn is_mouse(&self) -> bool
pub fn pressing(&self, button: MouseButton) -> bool
pub fn mouse_x(&self) -> f32
pub fn mouse_y(&self) -> f32
pub fn is_touch(&self) -> bool
pub fn touches(&self) -> Vec<[f32; 2]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pointer
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnwindSafe for Pointer
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