[−][src]Struct beryllium::MouseButtonEvent
A mouse button was pressed or released.
Fields
timestamp: u32
When
window_id: u32
Which window was involved?
mouse_id: u32
Which mouse was involved?
The button ID.
is_pressed: bool
The button was pressed.
clicks: u8
The number of repeated clicks.
x_pos: i32
The mouse's x position (relative to the window).
y_pos: i32
The mouse's y position (relative to the window).
Trait Implementations
impl Clone for MouseButtonEvent
[src]
fn clone(&self) -> MouseButtonEvent
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MouseButtonEvent
[src]
impl Debug for MouseButtonEvent
[src]
impl From<MouseButtonEvent> for SDL_MouseButtonEvent
[src]
fn from(ev: MouseButtonEvent) -> Self
[src]
impl From<SDL_MouseButtonEvent> for MouseButtonEvent
[src]
fn from(ev: SDL_MouseButtonEvent) -> Self
[src]
Auto Trait Implementations
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,