FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RawKeyEventArgs

    struct · ferroui-base · v0.5.0

    struct RawKeyEventArgs
    

    A raw keyboard event.

    View source

    Members

    new

    fn new(device: Rc<dyn IInputDevice>, timestamp: u64, root: Rc<dyn IInputRoot>, type_: RawKeyEventType, key: Key, modifiers: RawInputModifiers, physical_key: PhysicalKey, key_symbol: Option<String>, key_device_type: KeyDeviceType) -> Self
    

    Creates raw key event args.

    Source

    key

    fn key(self: &Self) -> Key
    

    Source

    set_key

    fn set_key(self: &Self, value: Key)
    

    Source

    modifiers

    fn modifiers(self: &Self) -> RawInputModifiers
    

    Source

    set_modifiers

    fn set_modifiers(self: &Self, value: RawInputModifiers)
    

    Source

    type_

    fn type_(self: &Self) -> RawKeyEventType
    

    Source

    set_type

    fn set_type(self: &Self, value: RawKeyEventType)
    

    Source

    physical_key

    fn physical_key(self: &Self) -> PhysicalKey
    

    Source

    set_physical_key

    fn set_physical_key(self: &Self, value: PhysicalKey)
    

    Source

    key_device_type

    fn key_device_type(self: &Self) -> KeyDeviceType
    

    Source

    set_key_device_type

    fn set_key_device_type(self: &Self, value: KeyDeviceType)
    

    Source

    key_symbol

    fn key_symbol(self: &Self) -> Option<String>
    

    Source

    set_key_symbol

    fn set_key_symbol(self: &Self, value: Option<String>)
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ErasedDestructor
    • IntoEither
    • Deref
    • IRawInputEventArgs

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.