pub struct HotkeysRegistry<C, T>{ /* private fields */ }Implementations§
Source§impl<C, T> HotkeysRegistry<C, T>
impl<C, T> HotkeysRegistry<C, T>
pub fn new() -> Self
pub fn register_system_hotkey( &mut self, context: C, key_combos: &[KeyCombo], value: T, )
pub fn register_entry_hotkey(&mut self, key_combos: &[KeyCombo], value: T)
pub fn clear_entry_hotkeys(&mut self)
pub fn get_hotkey_value( &self, context: C, key_combos: &[KeyCombo], ) -> Option<&T>
pub fn get_hotkey_node( &self, context: C, key_combos: &[KeyCombo], ) -> Option<&HotkeysTrieNode<T>>
Source§impl HotkeysRegistry<InputMode, Action>
impl HotkeysRegistry<InputMode, Action>
pub fn new_with_default_system_hotkeys() -> Self
pub fn assign_hotkeys( &mut self, entry_render_data: &mut [EntryRenderData<'_>], preferred_key_combos_in_order: &[KeyCombo], )
Trait Implementations§
Source§impl<C, T> Debug for HotkeysRegistry<C, T>
impl<C, T> Debug for HotkeysRegistry<C, T>
Auto Trait Implementations§
impl<C, T> Freeze for HotkeysRegistry<C, T>where
T: Freeze,
impl<C, T> RefUnwindSafe for HotkeysRegistry<C, T>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, T> Send for HotkeysRegistry<C, T>
impl<C, T> Sync for HotkeysRegistry<C, T>
impl<C, T> Unpin for HotkeysRegistry<C, T>
impl<C, T> UnwindSafe for HotkeysRegistry<C, T>where
C: UnwindSafe,
T: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more