#[repr(C)]pub struct SDL_TextInputEvent {
pub type_: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub windowID: SDL_WindowID,
pub text: *const c_char,
}Expand description
Keyboard text input event structure (event.text.*)
This event will never be delivered unless text input is enabled by calling SDL_StartTextInput(). Text input is disabled by default!
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_StartTextInput See Also: SDL_StopTextInput
Fields§
§type_: SDL_EventType< SDL_EVENT_TEXT_INPUT
reserved: Uint32§timestamp: Uint64< In nanoseconds, populated using SDL_GetTicksNS()
windowID: SDL_WindowID< The window with keyboard focus, if any
text: *const c_char< The input text, UTF-8 encoded
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 duplicate 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§impl Hash for SDL_TextInputEvent
impl Hash for SDL_TextInputEvent
impl Copy for SDL_TextInputEvent
Auto Trait Implementations§
impl Freeze for SDL_TextInputEvent
impl RefUnwindSafe for SDL_TextInputEvent
impl !Send for SDL_TextInputEvent
impl !Sync for SDL_TextInputEvent
impl Unpin for SDL_TextInputEvent
impl UnsafeUnpin for SDL_TextInputEvent
impl UnwindSafe for SDL_TextInputEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more