Enum xcb::xkb::Action

source ·
pub enum Action {
Show 21 variants NoAction {}, SetMods { flags: u8, mask: u8, real_mods: u8, vmods_high: u8, vmods_low: u8, }, LatchMods { flags: u8, mask: u8, real_mods: u8, vmods_high: u8, vmods_low: u8, }, LockMods { flags: u8, mask: u8, real_mods: u8, vmods_high: u8, vmods_low: u8, }, SetGroup { flags: u8, group: i8, }, LatchGroup { flags: u8, group: i8, }, LockGroup { flags: u8, group: i8, }, MovePtr { flags: u8, x_high: i8, x_low: u8, y_high: i8, y_low: u8, }, PtrBtn { flags: u8, count: u8, button: u8, }, LockPtrBtn { flags: u8, button: u8, }, SetPtrDflt { flags: u8, affect: u8, value: i8, }, IsoLock { flags: u8, mask: u8, real_mods: u8, group: i8, affect: u8, vmods_high: u8, vmods_low: u8, }, Terminate {}, SwitchScreen { flags: u8, new_screen: i8, }, SetControls { bool_ctrls_high: u8, bool_ctrls_low: u8, }, LockControls { bool_ctrls_high: u8, bool_ctrls_low: u8, }, Message { flags: u8, message: [u8; 6], }, RedirectKey { newkey: Keycode, mask: u8, real_modifiers: u8, vmods_mask_high: u8, vmods_mask_low: u8, vmods_high: u8, vmods_low: u8, }, DeviceBtn { flags: u8, count: u8, button: u8, device: u8, }, LockDeviceBtn { flags: u8, button: u8, device: u8, }, DeviceValuator { device: u8, val1what: u8, val1index: u8, val1value: u8, val2what: u8, val2index: u8, val2value: u8, },
}

Variants§

§

NoAction

§

SetMods

Fields

§flags: u8
§mask: u8
§real_mods: u8
§vmods_high: u8
§vmods_low: u8
§

LatchMods

Fields

§flags: u8
§mask: u8
§real_mods: u8
§vmods_high: u8
§vmods_low: u8
§

LockMods

Fields

§flags: u8
§mask: u8
§real_mods: u8
§vmods_high: u8
§vmods_low: u8
§

SetGroup

Fields

§flags: u8
§group: i8
§

LatchGroup

Fields

§flags: u8
§group: i8
§

LockGroup

Fields

§flags: u8
§group: i8
§

MovePtr

Fields

§flags: u8
§x_high: i8
§x_low: u8
§y_high: i8
§y_low: u8
§

PtrBtn

Fields

§flags: u8
§count: u8
§button: u8
§

LockPtrBtn

Fields

§flags: u8
§button: u8
§

SetPtrDflt

Fields

§flags: u8
§affect: u8
§value: i8
§

IsoLock

Fields

§flags: u8
§mask: u8
§real_mods: u8
§group: i8
§affect: u8
§vmods_high: u8
§vmods_low: u8
§

Terminate

§

SwitchScreen

Fields

§flags: u8
§new_screen: i8
§

SetControls

Fields

§bool_ctrls_high: u8
§bool_ctrls_low: u8
§

LockControls

Fields

§bool_ctrls_high: u8
§bool_ctrls_low: u8
§

Message

Fields

§flags: u8
§message: [u8; 6]
§

RedirectKey

Fields

§newkey: Keycode
§mask: u8
§real_modifiers: u8
§vmods_mask_high: u8
§vmods_mask_low: u8
§vmods_high: u8
§vmods_low: u8
§

DeviceBtn

Fields

§flags: u8
§count: u8
§button: u8
§device: u8
§

LockDeviceBtn

Fields

§flags: u8
§button: u8
§device: u8
§

DeviceValuator

Fields

§device: u8
§val1what: u8
§val1index: u8
§val1value: u8
§val2what: u8
§val2index: u8
§val2value: u8

Trait Implementations§

source§

impl Clone for Action

source§

fn clone(&self) -> Action

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Action

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Action

§

impl RefUnwindSafe for Action

§

impl Send for Action

§

impl Sync for Action

§

impl Unpin for Action

§

impl UnwindSafe for Action

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.