class

X11::ModifierKeymap

Inherits Reference / Object

Constructors

new(modifier_keymap : X11::C::X::PModifierKeymap)
Source
new(max_keys_per_mod : Int32)

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.

Source

Instance methods

delete_entry(entry : X11::C::KeyCode, modifier : Int32) : ModifierKeymap

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.

Source
finalize
Source
insert_entry(entry : X11::C::KeyCode, modifier : Int32) : ModifierKeymap

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.

Source
max_keys_per_mod

Specifies the number of KeyCode entries preallocated to the modifiers in the map.

Source
modifier_keymap
Source