[−][src]Struct egui::MouseInput
What egui maintains
Fields
down: bool
Is the button currently down? true the frame when it is pressed, false the frame it is released.
pressed: bool
The mouse went from !down to down
released: bool
The mouse went from down to !down
could_be_click: bool
If the mouse is down, will it register as a click when released? Set to true on mouse down, set to false when mouse moves too much.
click: bool
Was there a click? Did a mouse button get released this frame closely after going down?
double_click: bool
Was there a double-click?
last_click_time: f64
When did the mouse get click last? Used to check for double-clicks.
pos: Option<Pos2>
Current position of the mouse in points. None for touch screens when finger is not down.
press_origin: Option<Pos2>
Where did the current click/drag originate?
delta: Vec2
How much the mouse moved compared to last frame, in points.
velocity: Vec2
Current velocity of mouse cursor.
Implementations
impl MouseInput
[src]
#[must_use]pub fn begin_frame(self, new: &RawInput) -> MouseInput
[src]
impl MouseInput
[src]
Trait Implementations
impl Clone for MouseInput
[src]
pub fn clone(&self) -> MouseInput
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MouseInput
[src]
impl Default for MouseInput
[src]
Auto Trait Implementations
impl RefUnwindSafe for MouseInput
[src]
impl Send for MouseInput
[src]
impl Sync for MouseInput
[src]
impl Unpin for MouseInput
[src]
impl UnwindSafe for MouseInput
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,