FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    KeyChangedEventArgs

    struct · ferroui-headless-vnc · v0.5.0

    struct KeyChangedEventArgs
    

    Provides data for the key changed event of the server session.

    View source

    Members

    new

    fn new(keysym: KeySym, pressed: bool) -> Self
    

    Initializes a new instance of the KeyChangedEventArgs class.

    keysym is the X11 keysym of the key (for many keys this is the ASCII value); pressed is true for a key press event, or false for a key release event.

    Source

    keysym

    fn keysym(self: &Self) -> KeySym
    

    Gets the X11 keysym of the key. For many keys this is the ASCII value.

    Source

    pressed

    fn pressed(self: &Self) -> bool
    

    Gets a value indicating whether a key was pressed: true for a key press event, or false for a key release event.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Same
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.