Enum sdl2_sys::SDL_Keymod
source · [−]#[repr(u32)]
pub enum SDL_Keymod {
Show 17 variants
KMOD_NONE,
KMOD_LSHIFT,
KMOD_RSHIFT,
KMOD_LCTRL,
KMOD_RCTRL,
KMOD_LALT,
KMOD_RALT,
KMOD_LGUI,
KMOD_RGUI,
KMOD_NUM,
KMOD_CAPS,
KMOD_MODE,
KMOD_RESERVED,
KMOD_CTRL,
KMOD_SHIFT,
KMOD_ALT,
KMOD_GUI,
}
Expand description
\brief Enumeration of valid key mods (possibly OR’d together).
Variants
KMOD_NONE
KMOD_LSHIFT
KMOD_RSHIFT
KMOD_LCTRL
KMOD_RCTRL
KMOD_LALT
KMOD_RALT
KMOD_LGUI
KMOD_RGUI
KMOD_NUM
KMOD_CAPS
KMOD_MODE
KMOD_RESERVED
KMOD_CTRL
KMOD_SHIFT
KMOD_ALT
KMOD_GUI
Trait Implementations
sourceimpl Clone for SDL_Keymod
impl Clone for SDL_Keymod
sourcefn clone(&self) -> SDL_Keymod
fn clone(&self) -> SDL_Keymod
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
sourceimpl Debug for SDL_Keymod
impl Debug for SDL_Keymod
sourceimpl Hash for SDL_Keymod
impl Hash for SDL_Keymod
sourceimpl PartialEq<SDL_Keymod> for SDL_Keymod
impl PartialEq<SDL_Keymod> for SDL_Keymod
impl Copy for SDL_Keymod
impl Eq for SDL_Keymod
impl StructuralEq for SDL_Keymod
impl StructuralPartialEq for SDL_Keymod
Auto Trait Implementations
impl RefUnwindSafe for SDL_Keymod
impl Send for SDL_Keymod
impl Sync for SDL_Keymod
impl Unpin for SDL_Keymod
impl UnwindSafe for SDL_Keymod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more