Struct smithay_client_toolkit::seat::keyboard::KbdHandler
source · struct KbdHandler {
state: Rc<RefCell<KbState>>,
callback: Rc<RefCell<dyn FnMut(Event<'_>, WlKeyboard, DispatchData<'_>)>>,
repeat: Option<KbdRepeat>,
}
Fields§
§state: Rc<RefCell<KbState>>
§callback: Rc<RefCell<dyn FnMut(Event<'_>, WlKeyboard, DispatchData<'_>)>>
§repeat: Option<KbdRepeat>
Implementations§
source§impl KbdHandler
impl KbdHandler
fn event( &mut self, kbd: WlKeyboard, event: Event, dispatch_data: DispatchData<'_> )
fn keymap(&mut self, _: WlKeyboard, format: KeymapFormat, fd: RawFd, size: u32)
fn enter( &mut self, object: WlKeyboard, serial: u32, surface: WlSurface, keys: Vec<u8>, dispatch_data: DispatchData<'_> )
fn leave( &mut self, object: WlKeyboard, serial: u32, surface: WlSurface, dispatch_data: DispatchData<'_> )
fn key( &mut self, object: WlKeyboard, serial: u32, time: u32, key: u32, key_state: KeyState, dispatch_data: DispatchData<'_> )
fn modifiers( &mut self, object: WlKeyboard, mods_depressed: u32, mods_latched: u32, mods_locked: u32, group: u32, dispatch_data: DispatchData<'_> )
fn repeat_info(&mut self, _: WlKeyboard, rate: i32, delay: i32)
Auto Trait Implementations§
impl !RefUnwindSafe for KbdHandler
impl !Send for KbdHandler
impl !Sync for KbdHandler
impl Unpin for KbdHandler
impl !UnwindSafe for KbdHandler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more