Enum sdl2_sys::SDL_Keymod
source · #[repr(u32)]pub enum SDL_Keymod {
Show 13 variants
KMOD_NONE = 0,
KMOD_LSHIFT = 1,
KMOD_RSHIFT = 2,
KMOD_LCTRL = 64,
KMOD_RCTRL = 128,
KMOD_LALT = 256,
KMOD_RALT = 512,
KMOD_LGUI = 1_024,
KMOD_RGUI = 2_048,
KMOD_NUM = 4_096,
KMOD_CAPS = 8_192,
KMOD_MODE = 16_384,
KMOD_RESERVED = 32_768,
}
Expand description
\brief Enumeration of valid key mods (possibly OR’d together).
Variants§
KMOD_NONE = 0
KMOD_LSHIFT = 1
KMOD_RSHIFT = 2
KMOD_LCTRL = 64
KMOD_RCTRL = 128
KMOD_LALT = 256
KMOD_RALT = 512
KMOD_LGUI = 1_024
KMOD_RGUI = 2_048
KMOD_NUM = 4_096
KMOD_CAPS = 8_192
KMOD_MODE = 16_384
KMOD_RESERVED = 32_768
Trait Implementations§
source§impl Clone for SDL_Keymod
impl Clone for SDL_Keymod
source§fn clone(&self) -> SDL_Keymod
fn clone(&self) -> SDL_Keymod
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SDL_Keymod
impl Debug for SDL_Keymod
source§impl Hash for SDL_Keymod
impl Hash for SDL_Keymod
source§impl PartialEq for SDL_Keymod
impl PartialEq for SDL_Keymod
impl Copy for SDL_Keymod
impl Eq for SDL_Keymod
impl StructuralPartialEq for SDL_Keymod
Auto Trait Implementations§
impl Freeze for SDL_Keymod
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)