Struct sdl2_sys::SDL_MouseButtonEvent [] [src]

#[repr(C)]
pub struct SDL_MouseButtonEvent { pub type_: Uint32, pub timestamp: Uint32, pub windowID: Uint32, pub which: Uint32, pub button: Uint8, pub state: Uint8, pub clicks: Uint8, pub padding1: Uint8, pub x: Sint32, pub y: Sint32, }

\brief Mouse button event structure (event.button.*)

Fields

< ::SDL_MOUSEBUTTONDOWN or ::SDL_MOUSEBUTTONUP

< The window with mouse focus, if any

< The mouse instance id, or SDL_TOUCH_MOUSEID

< The mouse button index

< ::SDL_PRESSED or ::SDL_RELEASED

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

< X coordinate, relative to window

< Y coordinate, relative to window

Trait Implementations

impl Debug for SDL_MouseButtonEvent
[src]

[src]

Formats the value using the given formatter.

impl Copy for SDL_MouseButtonEvent
[src]

impl Clone for SDL_MouseButtonEvent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more