Enum i_slint_core::items::KeyEventType
source · [−]#[repr(C)]
pub enum KeyEventType {
KeyPressed,
KeyReleased,
}
Expand description
This enum defines the different kinds of key events that can happen.
Variants
KeyPressed
A key on a keyboard was pressed.
KeyReleased
A key on a keyboard was released.
Trait Implementations
sourceimpl Clone for KeyEventType
impl Clone for KeyEventType
sourcefn clone(&self) -> KeyEventType
fn clone(&self) -> KeyEventType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KeyEventType
impl Debug for KeyEventType
sourceimpl Default for KeyEventType
impl Default for KeyEventType
sourceimpl Display for KeyEventType
impl Display for KeyEventType
sourceimpl FromStr for KeyEventType
impl FromStr for KeyEventType
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl Hash for KeyEventType
impl Hash for KeyEventType
sourceimpl PartialEq<KeyEventType> for KeyEventType
impl PartialEq<KeyEventType> for KeyEventType
sourceimpl TryFrom<&'_ str> for KeyEventType
impl TryFrom<&'_ str> for KeyEventType
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
impl Copy for KeyEventType
impl Eq for KeyEventType
impl StructuralEq for KeyEventType
impl StructuralPartialEq for KeyEventType
Auto Trait Implementations
impl RefUnwindSafe for KeyEventType
impl Send for KeyEventType
impl Sync for KeyEventType
impl Unpin for KeyEventType
impl UnwindSafe for KeyEventType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more