[][src]Struct beryllium::MouseButtonEvent

pub struct MouseButtonEvent {
    pub timestamp: u32,
    pub window_id: u32,
    pub mouse_id: u32,
    pub button: MouseButton,
    pub is_pressed: bool,
    pub clicks: u8,
    pub x_pos: i32,
    pub y_pos: i32,
}

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?

button: MouseButton

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]

impl Copy for MouseButtonEvent[src]

impl Debug for MouseButtonEvent[src]

impl From<MouseButtonEvent> for SDL_MouseButtonEvent[src]

impl From<SDL_MouseButtonEvent> for MouseButtonEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.