class X11::KeyEvent

Overview

Wrapper from X11::C::X::KeyEvent structure.

Defined in:

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(key_event : X11::C::X::PKeyEvent) #

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

def self.new #

Instance Method Detail

def display : Display #

def display=(display : Display) #

def keycode : UInt32 #

def keycode=(keycode : UInt32) #

def lookup_keysym(index : Int32) : X11::C::KeySym #

Returns the KeySym from the list that corresponds to the #keycode member

Arguments

  • index Specifies the index into the KeySyms list for the event's KeyCode.

Description

The #lookup_keysym function uses a given keyboard event and the index you specified to return the KeySym from the list that corresponds to the KeyCode member in the KeyPressedEvent or KeyReleasedEvent structure. If no KeySym is defined for the KeyCode of the event, lookup_leysym returns NoSymbol.

See also

#lookup_string, Display::rebind_keysym, MappingEvent::refresh_keyboard_mapping, ButtonEvent, MapEvent.


def lookup_string : NamedTuple() #

Translates key event to a string and a keysym.


def press? : Bool #

def release? : Bool #

def root : X11::C::Window #

def root=(root : X11::C::Window) #

def same_screen : Bool #

def same_screen=(same_screen : Bool) #

def send_event : Bool #

def send_event=(send_event : Bool) #

def serial : UInt64 #

def serial=(serial : UInt64) #

def state : UInt32 #

def state=(state : UInt32) #

def sub_window : X11::C::Window #

def sub_window=(sub_window : X11::C::Window) #

def time : X11::C::Time #

def time=(time : X11::C::Time) #

def to_unsafe : X11::C::X::PKeyEvent #

def to_x : X11::C::X::KeyEvent #

def type : Int32 #

def type=(type : Int32) #

def window : X11::C::Window #

def window=(window : X11::C::Window) #

def x : Int32 #

def x=(x : Int32) #

def x_root : Int32 #

def x_root=(x_root : Int32) #

def y : Int32 #

def y=(y : Int32) #

def y_root : Int32 #

def y_root=(y_root : Int32) #