Struct wayland_kbd::MappedKeyboard
[−]
[src]
pub struct MappedKeyboard<H: Handler> { /* fields omitted */ }
A wayland keyboard mapped to its keymap
It wraps an event iterator on this keyboard, catching the Keymap, Key, and Modifiers events of the keyboard to handle them using libxkbcommon. All other events are directly forwarded.
Methods
impl<H: Handler> MappedKeyboard<H>
[src]
fn new(handler: H) -> Result<MappedKeyboard<H>, MappedKeyboardError>
fn handler(&mut self) -> &mut H
Trait Implementations
impl<H: Handler> Handler for MappedKeyboard<H>
[src]
fn keymap(&mut self,
_: &mut EventQueueHandle,
_: &WlKeyboard,
_: KeymapFormat,
fd: RawFd,
size: u32)
_: &mut EventQueueHandle,
_: &WlKeyboard,
_: KeymapFormat,
fd: RawFd,
size: u32)
keyboard mapping Read more
fn enter(&mut self,
evqh: &mut EventQueueHandle,
proxy: &WlKeyboard,
serial: u32,
surface: &WlSurface,
keys: Vec<u8>)
evqh: &mut EventQueueHandle,
proxy: &WlKeyboard,
serial: u32,
surface: &WlSurface,
keys: Vec<u8>)
enter event Read more
fn leave(&mut self,
evqh: &mut EventQueueHandle,
proxy: &WlKeyboard,
serial: u32,
surface: &WlSurface)
evqh: &mut EventQueueHandle,
proxy: &WlKeyboard,
serial: u32,
surface: &WlSurface)
leave event Read more
fn key(&mut self,
evqh: &mut EventQueueHandle,
proxy: &WlKeyboard,
serial: u32,
time: u32,
key: u32,
state: KeyState)
evqh: &mut EventQueueHandle,
proxy: &WlKeyboard,
serial: u32,
time: u32,
key: u32,
state: KeyState)
key event Read more
fn modifiers(&mut self,
_: &mut EventQueueHandle,
_: &WlKeyboard,
_: u32,
mods_depressed: u32,
mods_latched: u32,
mods_locked: u32,
group: u32)
_: &mut EventQueueHandle,
_: &WlKeyboard,
_: u32,
mods_depressed: u32,
mods_latched: u32,
mods_locked: u32,
group: u32)
modifier and group state Read more
fn repeat_info(&mut self,
evqh: &mut EventQueueHandle,
proxy: &WlKeyboard,
rate: i32,
delay: i32)
evqh: &mut EventQueueHandle,
proxy: &WlKeyboard,
rate: i32,
delay: i32)
repeat rate and delay Read more