Struct allegro_sys::events::ALLEGRO_KEYBOARD_EVENT
source · [−]#[repr(C)]pub struct ALLEGRO_KEYBOARD_EVENT {
pub _type: ALLEGRO_EVENT_TYPE,
pub source: *mut ALLEGRO_KEYBOARD,
pub timestamp: c_double,
pub display: *mut ALLEGRO_DISPLAY,
pub keycode: c_int,
pub unichar: c_int,
pub modifiers: c_uint,
pub repeat: c_bool,
}
Fields
_type: ALLEGRO_EVENT_TYPE
source: *mut ALLEGRO_KEYBOARD
timestamp: c_double
display: *mut ALLEGRO_DISPLAY
keycode: c_int
unichar: c_int
modifiers: c_uint
repeat: c_bool
Trait Implementations
sourceimpl Clone for ALLEGRO_KEYBOARD_EVENT
impl Clone for ALLEGRO_KEYBOARD_EVENT
sourcefn clone(&self) -> ALLEGRO_KEYBOARD_EVENT
fn clone(&self) -> ALLEGRO_KEYBOARD_EVENT
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for ALLEGRO_KEYBOARD_EVENT
Auto Trait Implementations
impl RefUnwindSafe for ALLEGRO_KEYBOARD_EVENT
impl !Send for ALLEGRO_KEYBOARD_EVENT
impl !Sync for ALLEGRO_KEYBOARD_EVENT
impl Unpin for ALLEGRO_KEYBOARD_EVENT
impl UnwindSafe for ALLEGRO_KEYBOARD_EVENT
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more