Enum masonry::PointerEvent
source · pub enum PointerEvent {
PointerDown(MouseButton, PointerState),
PointerUp(MouseButton, PointerState),
PointerMove(PointerState),
PointerEnter(PointerState),
PointerLeave(PointerState),
MouseWheel(LogicalPosition<f64>, PointerState),
HoverFile(PathBuf, PointerState),
DropFile(PathBuf, PointerState),
HoverFileCancel(PointerState),
}
Variants§
PointerDown(MouseButton, PointerState)
PointerUp(MouseButton, PointerState)
PointerMove(PointerState)
PointerEnter(PointerState)
PointerLeave(PointerState)
MouseWheel(LogicalPosition<f64>, PointerState)
HoverFile(PathBuf, PointerState)
DropFile(PathBuf, PointerState)
HoverFileCancel(PointerState)
Implementations§
source§impl PointerEvent
impl PointerEvent
pub fn pointer_state(&self) -> &PointerState
pub fn short_name(&self) -> &'static str
pub fn is_high_density(&self) -> bool
Trait Implementations§
source§impl Clone for PointerEvent
impl Clone for PointerEvent
source§fn clone(&self) -> PointerEvent
fn clone(&self) -> PointerEvent
Returns a copy of the value. Read more
1.0.0 · 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 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> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
source§fn as_dyn_any(&self) -> &(dyn Any + 'static)
fn as_dyn_any(&self) -> &(dyn Any + 'static)
Return self.
source§fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
Return self.
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