pub struct MouseDownEvent {
pub button: MouseButton,
pub position: Point<Pixels>,
pub modifiers: Modifiers,
pub click_count: usize,
pub first_mouse: bool,
}Expand description
A mouse down event from the platform
Fields§
Which mouse button was pressed.
position: Point<Pixels>The position of the mouse on the window.
modifiers: ModifiersThe modifiers that were held down when the mouse was pressed.
click_count: usizeThe number of times the button has been clicked.
first_mouse: boolWhether this is the first, focusing click.
Implementations§
Source§impl MouseDownEvent
impl MouseDownEvent
Sourcepub fn is_focusing(&self) -> bool
pub fn is_focusing(&self) -> bool
Returns true if this mouse up event should focus the element.
Trait Implementations§
Source§impl Clone for MouseDownEvent
impl Clone for MouseDownEvent
Source§impl Debug for MouseDownEvent
impl Debug for MouseDownEvent
Auto Trait Implementations§
impl Freeze for MouseDownEvent
impl RefUnwindSafe for MouseDownEvent
impl Send for MouseDownEvent
impl Sync for MouseDownEvent
impl Unpin for MouseDownEvent
impl UnsafeUnpin for MouseDownEvent
impl UnwindSafe for MouseDownEvent
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