Struct x11rb_protocol::protocol::xkb::GetDeviceInfoReply
source · pub struct GetDeviceInfoReply {Show 17 fields
pub device_id: u8,
pub sequence: u16,
pub length: u32,
pub present: XIFeature,
pub supported: XIFeature,
pub unsupported: XIFeature,
pub first_btn_wanted: u8,
pub n_btns_wanted: u8,
pub first_btn_rtrn: u8,
pub total_btns: u8,
pub has_own_state: bool,
pub dflt_kbd_fb: u16,
pub dflt_led_fb: u16,
pub dev_type: Atom,
pub name: Vec<String8>,
pub btn_actions: Vec<Action>,
pub leds: Vec<DeviceLedInfo>,
}
Fields§
§device_id: u8
§sequence: u16
§length: u32
§present: XIFeature
§supported: XIFeature
§unsupported: XIFeature
§first_btn_wanted: u8
§n_btns_wanted: u8
§first_btn_rtrn: u8
§total_btns: u8
§has_own_state: bool
§dflt_kbd_fb: u16
§dflt_led_fb: u16
§dev_type: Atom
§name: Vec<String8>
§btn_actions: Vec<Action>
§leds: Vec<DeviceLedInfo>
Implementations§
source§impl GetDeviceInfoReply
impl GetDeviceInfoReply
sourcepub fn n_device_led_f_bs(&self) -> u16
pub fn n_device_led_f_bs(&self) -> u16
Get the value of the nDeviceLedFBs
field.
The nDeviceLedFBs
field is used as the length field of the leds
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.
sourcepub fn n_btns_rtrn(&self) -> u8
pub fn n_btns_rtrn(&self) -> u8
Get the value of the nBtnsRtrn
field.
The nBtnsRtrn
field is used as the length field of the btnActions
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.
sourcepub fn name_len(&self) -> u16
pub fn name_len(&self) -> u16
Get the value of the nameLen
field.
The nameLen
field is used as the length field of the name
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§
source§impl Clone for GetDeviceInfoReply
impl Clone for GetDeviceInfoReply
source§fn clone(&self) -> GetDeviceInfoReply
fn clone(&self) -> GetDeviceInfoReply
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more