Struct smithay_client_toolkit::seat::keyboard::KbdRepeat
source · struct KbdRepeat {
start_timer: Box<dyn Fn(RepeatSource) -> RegistrationToken>,
stop_timer: Box<dyn Fn(RegistrationToken)>,
current_timer: Cell<Option<RegistrationToken>>,
current_repeat: Rc<RefCell<Option<RepeatData>>>,
details: RepeatDetails,
}
Fields§
§start_timer: Box<dyn Fn(RepeatSource) -> RegistrationToken>
§stop_timer: Box<dyn Fn(RegistrationToken)>
§current_timer: Cell<Option<RegistrationToken>>
§current_repeat: Rc<RefCell<Option<RepeatData>>>
§details: RepeatDetails
Implementations§
source§impl KbdRepeat
impl KbdRepeat
fn start_repeat( &self, key: u32, keyboard: WlKeyboard, time: u32, state: Rc<RefCell<KbState>> )
fn stop_repeat(&self, key: u32)
fn stop_all_repeat(&self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for KbdRepeat
impl !Send for KbdRepeat
impl !Sync for KbdRepeat
impl Unpin for KbdRepeat
impl !UnwindSafe for KbdRepeat
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