#[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!
§Availability
This struct is available since SDL 3.2.0.
§See also
Fields§
§type: SDL_EventType§reserved: Uint32§timestamp: Uint64In nanoseconds, populated using SDL_GetTicksNS()
windowID: SDL_WindowIDThe window with keyboard focus, if any
text: *const c_charThe 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
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 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