pub enum Pointer {
Down {
x: f32,
y: f32,
},
Drag {
x: f32,
y: f32,
},
Up {
x: f32,
y: f32,
},
Move {
x: f32,
y: f32,
},
Leave,
}Expand description
A pointer event on a surface, in coordinates local to its box (0,0 =
top-left corner).
Variants§
Down
A button went down over the surface; it gets the drags and the release that follow, wherever the cursor goes.
Drag
The cursor moved with the button held.
Up
The button came up.
Move
The cursor moved over the surface, no button held.
Leave
The cursor left the surface.
Trait Implementations§
impl Copy for Pointer
impl StructuralPartialEq for Pointer
Auto Trait Implementations§
impl Freeze for Pointer
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnsafeUnpin 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