Struct fermium::events::SDL_TextEditingEvent
source · #[repr(C)]pub struct SDL_TextEditingEvent {
pub type_: SDL_EventType,
pub timestamp: u32,
pub windowID: u32,
pub text: [c_char; 32],
pub start: i32,
pub length: i32,
}
Expand description
Keyboard text editing event structure (event.edit.*)
Fields§
§type_: SDL_EventType
Should always be SDL_TEXTEDITING
.
timestamp: u32
In milliseconds, populated using SDL_GetTicks
.
windowID: u32
The window with keyboard focus, if any.
text: [c_char; 32]
The editing text.
start: i32
The start cursor of selected editing text.
length: i32
The length of selected editing text.
Trait Implementations§
source§impl Clone for SDL_TextEditingEvent
impl Clone for SDL_TextEditingEvent
source§fn clone(&self) -> SDL_TextEditingEvent
fn clone(&self) -> SDL_TextEditingEvent
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_TextEditingEvent
impl Debug for SDL_TextEditingEvent
source§impl Default for SDL_TextEditingEvent
impl Default for SDL_TextEditingEvent
source§fn default() -> SDL_TextEditingEvent
fn default() -> SDL_TextEditingEvent
Returns the “default value” for a type. Read more
source§impl Hash for SDL_TextEditingEvent
impl Hash for SDL_TextEditingEvent
source§impl Ord for SDL_TextEditingEvent
impl Ord for SDL_TextEditingEvent
source§fn cmp(&self, other: &SDL_TextEditingEvent) -> Ordering
fn cmp(&self, other: &SDL_TextEditingEvent) -> 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_TextEditingEvent> for SDL_TextEditingEvent
impl PartialEq<SDL_TextEditingEvent> for SDL_TextEditingEvent
source§fn eq(&self, other: &SDL_TextEditingEvent) -> bool
fn eq(&self, other: &SDL_TextEditingEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_TextEditingEvent> for SDL_TextEditingEvent
impl PartialOrd<SDL_TextEditingEvent> for SDL_TextEditingEvent
source§fn partial_cmp(&self, other: &SDL_TextEditingEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_TextEditingEvent) -> 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