class X11::MappingEvent

Overview

Wrapper for X11::C::X::MappingEvent structure.

Defined in:

x11/mapping_event.cr

Constructors

Instance Method Summary

Instance methods inherited from class X11::WindowEvent

display : Display display, display=(display : Display) display=, window : X11::C::Window window, window=(window : X11::C::Window) window=

Instance methods inherited from class X11::Event

serial : UInt64 serial, serial=(serial : UInt64) serial=, type : Int32 type, type=(type : Int32) type=

Constructor methods inherited from class X11::Event

from_xevent(xevent : X11::C::X::Event) : Event from_xevent

Constructor Detail

def self.new(event : X11::C::X::PMappingEvent) #

[View source]
def self.new(event : X11::C::X::MappingEvent) #

[View source]
def self.new #

[View source]

Instance Method Detail

def count : Int32 #

[View source]
def count=(count : Int32) #

[View source]
def display : Display #

[View source]
def display=(display : Display) #

[View source]
def first_keycode : Int32 #

[View source]
def first_keycode=(first_keycode : Int32) #

[View source]
def refresh_keyboard_mapping : Int32 #

Refreshes the stored modifier and keymap information.

Description

The #refresh_keyboard_mapping function refreshes the stored modifier and keymap information. You usually call this function when a MappingNotify event with a request member of MappingKeyboard or MappingModifier occurs. The result is to update Xlib's knowledge of the keyboard.

See also

KeyEvent::lookup_keysym, KeyEvent::lookup_string, Display::rebind_keysym, X11::string_to_keysym, ButtonEvent, MapEvent.


[View source]
def request : Int32 #

[View source]
def request=(request : Int32) #

[View source]
def send_event : Bool #

[View source]
def send_event=(send_event : Bool) #

[View source]
def serial : UInt64 #

[View source]
def serial=(serial : UInt64) #

[View source]
def to_unsafe : X11::C::X::PMappingEvent #

[View source]
def to_x : X11::C::X::MappingEvent #

[View source]
def type : Int32 #

[View source]
def type=(type : Int32) #

[View source]
def window : X11::C::Window #

[View source]
def window=(window : X11::C::Window) #

[View source]