class

X11::KeyEvent

Inherits X11::WindowEvent / X11::Event / Reference / Object

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

Constructors

new(key_event : X11::C::X::PKeyEvent)
Source
new(event : X11::C::X::KeyEvent)
Source

Instance methods

display
Source
display=(display : Display)
Source
keycode
Source
keycode=(keycode : UInt32)
Source
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.

Source
lookup_string

Translates key event to a string and a keysym.

Source
press?
Source
release?
Source
root
Source
root=(root : X11::C::Window)
Source
same_screen
Source
same_screen=(same_screen : Bool)
Source
send_event
Source
send_event=(send_event : Bool)
Source
serial
Source
serial=(serial : UInt64)
Source
state
Source
state=(state : UInt32)
Source
sub_window
Source
sub_window=(sub_window : X11::C::Window)
Source
time
Source
time=(time : X11::C::Time)
Source
to_unsafe
Source
to_x
Source
type
Source
type=(type : Int32)
Source
window
Source
window=(window : X11::C::Window)
Source
x=(x : Int32)
Source
x_root
Source
x_root=(x_root : Int32)
Source
y=(y : Int32)
Source
y_root
Source
y_root=(y_root : Int32)
Source