Struct fermium::events::SDL_TextInputEvent
source · #[repr(C)]pub struct SDL_TextInputEvent {
pub type_: SDL_EventType,
pub timestamp: u32,
pub windowID: u32,
pub text: [c_char; 32],
}
Expand description
Keyboard text input event structure (event.text.*)
Fields§
§type_: SDL_EventType
Should always be SDL_TEXTINPUT
.
timestamp: u32
In milliseconds, populated using SDL_GetTicks
.
windowID: u32
The window with keyboard focus, if any.
text: [c_char; 32]
The input text.
Trait Implementations§
source§impl Clone for SDL_TextInputEvent
impl Clone for SDL_TextInputEvent
source§fn clone(&self) -> SDL_TextInputEvent
fn clone(&self) -> SDL_TextInputEvent
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_TextInputEvent
impl Debug for SDL_TextInputEvent
source§impl Default for SDL_TextInputEvent
impl Default for SDL_TextInputEvent
source§fn default() -> SDL_TextInputEvent
fn default() -> SDL_TextInputEvent
Returns the “default value” for a type. Read more
source§impl Hash for SDL_TextInputEvent
impl Hash for SDL_TextInputEvent
source§impl Ord for SDL_TextInputEvent
impl Ord for SDL_TextInputEvent
source§fn cmp(&self, other: &SDL_TextInputEvent) -> Ordering
fn cmp(&self, other: &SDL_TextInputEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SDL_TextInputEvent> for SDL_TextInputEvent
impl PartialEq<SDL_TextInputEvent> for SDL_TextInputEvent
source§fn eq(&self, other: &SDL_TextInputEvent) -> bool
fn eq(&self, other: &SDL_TextInputEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_TextInputEvent> for SDL_TextInputEvent
impl PartialOrd<SDL_TextInputEvent> for SDL_TextInputEvent
source§fn partial_cmp(&self, other: &SDL_TextInputEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_TextInputEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more