class X11::ModifierKeymap

Defined in:

Constructors

Instance Method Summary

Constructor Detail

def self.new(modifier_keymap : X11::C::X::PModifierKeymap) #

def self.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.


Instance Method Detail

def 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.


def finalize #

def 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.


def max_keys_per_mod : Int32 #

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


def modifier_keymap : X11::C::X::PModifierKeymap #