Struct rich_sdl2_rust::event::text::TextInputEvent
source · pub struct TextInputEvent {
pub timestamp: u32,
pub window_id: u32,
pub text: String,
}
Expand description
An event on input the text directly or confirm the conversion on the window.
Fields§
§timestamp: u32
When this event occurred.
window_id: u32
The id of the window focused.
text: String
The text inputted.
Trait Implementations§
source§impl Clone for TextInputEvent
impl Clone for TextInputEvent
source§fn clone(&self) -> TextInputEvent
fn clone(&self) -> TextInputEvent
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 TextInputEvent
impl Debug for TextInputEvent
Auto Trait Implementations§
impl RefUnwindSafe for TextInputEvent
impl Send for TextInputEvent
impl Sync for TextInputEvent
impl Unpin for TextInputEvent
impl UnwindSafe for 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