Struct fermium::keycode::SDL_Keymod [−][src]
#[repr(transparent)]pub struct SDL_Keymod(pub i32);
Expand description
Representation of modifier key flags.
This is used in places like the SDL_Keysym
struct.
See all the constants named KMOD_*
Tuple Fields
0: i32
Implementations
Convenience function to downcast into u16
.
This is needed for easy interaction with the mod_
field of
SDL_Keysym
.
Trait Implementations
Performs the &=
operation. Read more
Performs the |=
operation. Read more
Performs the ^=
operation. Read more
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more