class X11::ModifierKeymap
- X11::ModifierKeymap
- Reference
- Object
Defined in:
x11/modifier_keymap.crConstructors
- .new(modifier_keymap : X11::C::X::PModifierKeymap)
-
.new(max_keys_per_mod : Int32)
Creates a new
ModifierKeymap
structure.
Instance Method Summary
-
#delete_entry(entry : X11::C::KeyCode, modifier : Int32) : ModifierKeymap
Deletes the specified KeyCode from the set that controls the specified modifier.
- #finalize
-
#insert_entry(entry : X11::C::KeyCode, modifier : Int32) : ModifierKeymap
Adds the specified KeyCode to the set that controls the specified modifier.
-
#max_keys_per_mod : Int32
Specifies the number of KeyCode entries preallocated to the modifiers in the map.
- #modifier_keymap : X11::C::X::PModifierKeymap
Constructor Detail
Creates a new ModifierKeymap
structure.
Arguments
- max_keys_per_mod Specifies the number of KeyCode entries preallocated to the modifiers in the map.
See also
Display::change_keyboard_mapping
, #delete_entry
, Display::display_keycodes
,
#finalize
, Display::keyboard_mapping
, Display::modifier_mapping
,
#insert_entry
, Display::set_modifier_mapping
, Display::set_pointer_mapping
.
Instance Method Detail
Deletes the specified KeyCode from the set that controls the specified modifier.
Arguments
- keycode_entry Specifies the KeyCode.
- modifier Specifies the modifier.
Description
The #delete_entry
function deletes the specified KeyCode from the set that
controls the specified modifier and returns a pointer to the resulting ModifierKeymap
structure.
See also
Display::change_keyboard_mapping
, Display::display_keycodes
,
#finalize
, Display::keyboard_mapping
, Display::modifier_mapping
,
#insert_entry
, .new
, Display::set_modifier_mapping
, Display::set_pointer_mapping
.
Adds the specified KeyCode to the set that controls the specified modifier.
Arguments
- keycode_entry Specifies the KeyCode.
- modifier Specifies the modifier.
Description
The #insert_entry
function adds the specified KeyCode to the set that controls
the specified modifier and returns the resulting ModifierKeymap
structure (expanded as needed).
See also
Display::change_keyboard_mapping
, #delete_entry
, Display::display_keycodes
,
#finalize
, Display::keyboard_mapping
, Display::modifier_mapping
,
#insert_entry
, .new
, Display::set_modifier_mapping
, Display::set_pointer_mapping
.
Specifies the number of KeyCode entries preallocated to the modifiers in the map.