xcb::xkb

Enum 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.