Enum sdl2_sys::SDL_Keymod
source · #[repr(u32)]pub enum SDL_Keymod {
Show 17 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_SCROLL = 32_768,
KMOD_CTRL = 192,
KMOD_SHIFT = 3,
KMOD_ALT = 768,
KMOD_GUI = 3_072,
}
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_SCROLL = 32_768
KMOD_CTRL = 192
KMOD_SHIFT = 3
KMOD_ALT = 768
KMOD_GUI = 3_072
Implementations§
source§impl SDL_Keymod
impl SDL_Keymod
pub const KMOD_RESERVED: SDL_Keymod = SDL_Keymod::KMOD_SCROLL
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 Hash for SDL_Keymod
impl Hash for SDL_Keymod
source§impl PartialEq for SDL_Keymod
impl PartialEq for SDL_Keymod
source§fn eq(&self, other: &SDL_Keymod) -> bool
fn eq(&self, other: &SDL_Keymod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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