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 ==.impl StructuralPartialEq for KeyInputEvent
Auto Trait Implementations§
impl RefUnwindSafe for KeyInputEvent
impl Send for KeyInputEvent
impl !Sync for KeyInputEvent
impl Unpin for KeyInputEvent
impl UnwindSafe for KeyInputEvent
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