Struct x11rb::protocol::xinput::KeyPressEvent[][src]

pub struct KeyPressEvent {
    pub response_type: u8,
    pub extension: u8,
    pub sequence: u16,
    pub length: u32,
    pub event_type: u16,
    pub deviceid: DeviceId,
    pub time: Timestamp,
    pub detail: u32,
    pub root: Window,
    pub event: Window,
    pub child: Window,
    pub root_x: Fp1616,
    pub root_y: Fp1616,
    pub event_x: Fp1616,
    pub event_y: Fp1616,
    pub sourceid: DeviceId,
    pub flags: u32,
    pub mods: ModifierInfo,
    pub group: GroupInfo,
    pub button_mask: Vec<u32>,
    pub valuator_mask: Vec<u32>,
    pub axisvalues: Vec<Fp3232>,
}

Fields

response_type: u8extension: u8sequence: u16length: u32event_type: u16deviceid: DeviceIdtime: Timestampdetail: u32root: Windowevent: Windowchild: Windowroot_x: Fp1616root_y: Fp1616event_x: Fp1616event_y: Fp1616sourceid: DeviceIdflags: u32mods: ModifierInfogroup: GroupInfobutton_mask: Vec<u32>valuator_mask: Vec<u32>axisvalues: Vec<Fp3232>

Implementations

impl KeyPressEvent[src]

pub fn buttons_len(&self) -> u16[src]

Get the value of the buttons_len field.

The buttons_len field is used as the length field of the button_mask field. This function computes the field’s value again based on the length of the list.

Panics

Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.

pub fn valuators_len(&self) -> u16[src]

Get the value of the valuators_len field.

The valuators_len field is used as the length field of the valuator_mask field. This function computes the field’s value again based on the length of the list.

Panics

Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.

Trait Implementations

impl Clone for KeyPressEvent[src]

impl Debug for KeyPressEvent[src]

impl Eq for KeyPressEvent[src]

impl PartialEq<KeyPressEvent> for KeyPressEvent[src]

impl StructuralEq for KeyPressEvent[src]

impl StructuralPartialEq for KeyPressEvent[src]

impl TryParse for KeyPressEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> TryParseFd for T where
    T: TryParse
[src]