[][src]Struct fermium::events::SDL_MouseButtonEvent

#[repr(C)]pub struct SDL_MouseButtonEvent {
    pub type_: SDL_EventType,
    pub timestamp: u32,
    pub windowID: u32,
    pub which: u32,
    pub button: u8,
    pub state: u8,
    pub clicks: u8,
    pub padding1: u8,
    pub x: i32,
    pub y: i32,
}

Mouse button event structure (event.button.*)

Fields

type_: SDL_EventTypetimestamp: u32

In milliseconds, populated using [SDL_GetTicks].

windowID: u32

The window with mouse focus, if any.

which: u32

The mouse instance id, or SDL_TOUCH_MOUSEID.

button: u8

The mouse button index

state: u8clicks: u8

1 for single-click, 2 for double-click, etc.

padding1: u8x: i32

X coordinate, relative to window

y: i32

Y coordinate, relative to window

Trait Implementations

impl Clone for SDL_MouseButtonEvent[src]

impl Copy for SDL_MouseButtonEvent[src]

impl Debug for SDL_MouseButtonEvent[src]

impl Default for SDL_MouseButtonEvent[src]

impl Eq for SDL_MouseButtonEvent[src]

impl Hash for SDL_MouseButtonEvent[src]

impl Ord for SDL_MouseButtonEvent[src]

impl PartialEq<SDL_MouseButtonEvent> for SDL_MouseButtonEvent[src]

impl PartialOrd<SDL_MouseButtonEvent> for SDL_MouseButtonEvent[src]

impl StructuralEq for SDL_MouseButtonEvent[src]

impl StructuralPartialEq for SDL_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, 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.