Struct i_slint_core::input::KeyInputEvent
source · #[repr(C)]pub struct KeyInputEvent {
pub text: SharedString,
pub event_type: KeyEventType,
pub preedit_selection_start: usize,
pub preedit_selection_end: usize,
}Expand description
Represents a key event sent by the windowing system.
Fields§
§text: SharedStringThe unicode representation of the key pressed.
event_type: KeyEventTypeIndicates whether the key was pressed or released
preedit_selection_start: usizeIf the event type is KeyEventType::UpdateComposition, then this field specifies the start of the selection as byte offsets within the preedit text.
preedit_selection_end: usizeIf the event type is KeyEventType::UpdateComposition, then this field specifies the end of the selection as byte offsets within the preedit text.
Trait Implementations§
source§impl Clone for KeyInputEvent
impl Clone for KeyInputEvent
source§fn clone(&self) -> KeyInputEvent
fn clone(&self) -> KeyInputEvent
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 KeyInputEvent
impl Debug for KeyInputEvent
source§impl Default for KeyInputEvent
impl Default for KeyInputEvent
source§fn default() -> KeyInputEvent
fn default() -> KeyInputEvent
Returns the “default value” for a type. Read more
source§impl PartialEq<KeyInputEvent> for KeyInputEvent
impl PartialEq<KeyInputEvent> for KeyInputEvent
source§fn eq(&self, other: &KeyInputEvent) -> bool
fn eq(&self, other: &KeyInputEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.