Struct winit::platform_impl::platform::x11::util::modifiers::ModifierKeymap
source · pub(crate) struct ModifierKeymap {
keys: HashMap<KeyCode, Modifier>,
}
Fields§
§keys: HashMap<KeyCode, Modifier>
Implementations§
source§impl ModifierKeymap
impl ModifierKeymap
pub fn new() -> ModifierKeymap
pub fn get_modifier(&self, keycode: KeyCode) -> Option<Modifier>
pub fn reset_from_x_connection(&mut self, xconn: &XConnection)
pub fn reset_from_x_keymap(&mut self, keymap: &XModifierKeymap)
fn read_x_keys( &mut self, keys: &[KeyCode], offset: usize, keys_per_mod: usize, modifier: Modifier )
Trait Implementations§
source§impl Debug for ModifierKeymap
impl Debug for ModifierKeymap
source§impl Default for ModifierKeymap
impl Default for ModifierKeymap
source§fn default() -> ModifierKeymap
fn default() -> ModifierKeymap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ModifierKeymap
impl Send for ModifierKeymap
impl Sync for ModifierKeymap
impl Unpin for ModifierKeymap
impl UnwindSafe for ModifierKeymap
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