[−][src]Struct wlroots::input::keyboard::Keyboard
Methods
impl Keyboard
[src]
impl Keyboard
pub fn input_device(&self) -> &Device
[src]
pub fn input_device(&self) -> &Device
Gets the wlr_input_device associated with this keyboard::Handle
pub fn set_keymap(&mut self, keymap: &Keymap)
[src]
pub fn set_keymap(&mut self, keymap: &Keymap)
Set the keymap for this Keyboard.
pub fn get_keymap(&mut self) -> Option<Keymap>
[src]
pub fn get_keymap(&mut self) -> Option<Keymap>
Get the XKB keymap associated with this Keyboard.
pub fn keycodes(&self) -> Vec<Keycode>
[src]
pub fn keycodes(&self) -> Vec<Keycode>
Get the keycodes for this keyboard as reported by XKB.
Limitations
wlroots limits this list to WLR_KEYBOARD_KEYS_CAP
elements,
which at the time of writing is 32
.
pub fn led_list(&self) -> &[LedIndex]
[src]
pub fn led_list(&self) -> &[LedIndex]
Get the list of LEDs for this keyboard as reported by XKB.
pub fn modifier_list(&self) -> &[ModIndex]
[src]
pub fn modifier_list(&self) -> &[ModIndex]
Get the list of modifiers for this keyboard as reported by XKB.
pub fn keymap_size(&self) -> usize
[src]
pub fn keymap_size(&self) -> usize
Get the size of the keymap.
pub fn get_xkb_state(&mut self) -> Option<State>
[src]
pub fn get_xkb_state(&mut self) -> Option<State>
Get the XKB state associated with this Keyboard
.
pub fn repeat_info(&self) -> RepeatInfo
[src]
pub fn repeat_info(&self) -> RepeatInfo
Get the repeat info for this keyboard.
pub fn update_led(&mut self, leds: Led)
[src]
pub fn update_led(&mut self, leds: Led)
Update the LED lights using the provided bitmap.
1 means one, 0 means off.
pub fn get_modifiers(&self) -> Modifier
[src]
pub fn get_modifiers(&self) -> Modifier
Get the modifiers that are currently pressed on the keyboard.
pub fn get_modifier_masks(&self) -> Modifiers
[src]
pub fn get_modifier_masks(&self) -> Modifiers
Get the modifier masks for each group.
Trait Implementations
impl Handleable<*mut wlr_input_device, wlr_keyboard> for Keyboard
[src]
impl Handleable<*mut wlr_input_device, wlr_keyboard> for Keyboard
fn weak_reference(&self) -> Handle
[src]
fn weak_reference(&self) -> Handle
Creates a weak reference to the resource.
impl Drop for Keyboard
[src]
impl Drop for Keyboard
impl Debug for Keyboard
[src]
impl Debug for Keyboard
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more