X11::KeyEvent
Inherits X11::WindowEvent / X11::Event / Reference / Object
Wrapper from X11::C::X::KeyEvent structure.
Constructors
new(key_event : X11::C::X::PKeyEvent)
Sourcenew(event : X11::C::X::KeyEvent)
Sourcenew
SourceInstance methods
display
Sourcedisplay=(display : Display)
Sourcekeycode
Sourcekeycode=(keycode : UInt32)
SourceReturns 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.
press?
Sourcerelease?
Sourceroot
Sourceroot=(root : X11::C::Window)
Sourcesame_screen
Sourcesame_screen=(same_screen : Bool)
Sourcesend_event
Sourcesend_event=(send_event : Bool)
Sourceserial
Sourceserial=(serial : UInt64)
Sourcestate
Sourcestate=(state : UInt32)
Sourcesub_window
Sourcesub_window=(sub_window : X11::C::Window)
Sourcetime
Sourcetime=(time : X11::C::Time)
Sourceto_unsafe
Sourceto_x
Sourcetype
Sourcetype=(type : Int32)
Sourcewindow
Sourcewindow=(window : X11::C::Window)
Sourcex=(x : Int32)
Sourcex_root
Sourcex_root=(x_root : Int32)
Sourcey=(y : Int32)
Sourcey_root
Sourcey_root=(y_root : Int32)
Source