Struct fermium::events::SDL_TextEditingEvent [−][src]
#[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
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