KeyChangedEventArgs
struct · ferroui-headless-vnc · v0.5.0
struct KeyChangedEventArgs
Provides data for the key changed event of the server session.
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.
keysym
fn keysym(self: &Self) -> KeySym
Gets the X11 keysym of the key. For many keys this is the ASCII value.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsSameCloneCopyDebugStructuralPartialEqPartialEqEqErasedDestructorIntoEither
Availability
Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.