Struct rich_sdl2_rust::event::text::TextEditingEvent
source · pub struct TextEditingEvent {
pub timestamp: u32,
pub window_id: u32,
pub text: String,
pub start: i32,
pub length: i32,
}
Expand description
An event on editing conversion on a software input method.
Fields§
§timestamp: u32
When this event occurred.
window_id: u32
The id of the window focused.
text: String
The text inputted.
start: i32
The editing position from the start.
length: i32
The length of editing characters.
Trait Implementations§
source§impl Clone for TextEditingEvent
impl Clone for TextEditingEvent
source§fn clone(&self) -> TextEditingEvent
fn clone(&self) -> 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 TextEditingEvent
impl Debug for TextEditingEvent
source§impl From<SDL_TextEditingEvent> for TextEditingEvent
impl From<SDL_TextEditingEvent> for TextEditingEvent
source§fn from(raw: SDL_TextEditingEvent) -> Self
fn from(raw: SDL_TextEditingEvent) -> Self
Converts to this type from the input type.