Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Login

Gdk::EventKey

class Gdk::EventKey

Describes a key press or key release event.

Class Methods

Gdk::EventKey.new(type)
Creates a new event of the given type. All fields are set to 0. Since 2.2

Instance Methods

time
Gets the time of the event in milliseconds.
  • Returns: the time of the event in milliseconds
time=(time)
Sets the time of the event in milliseconds.
  • time: the time of the event in milliseconds
  • Returns: time
set_time(time)
Same as Gdk::EventKey#time=.
  • time: the time of the event in milliseconds
  • Returns: self
state
Gets the bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType.
state=(state)
Sets a bit-mask representing the state of modifier keys.
set_state(state)
Same as Gdk::EventKey#state=.
keyval
Gets the GDK key code that was pressed or released.
  • Returns: GDK key code
keyval=(keyval)
Sets the GDK key code.
  • keyval: GDK key code
  • Returns: self
set_keyval(keyval)
Same as Gdk::EventKey#keyval=.
  • keyval: GDK key code
  • Returns: self
hardware_keycode
Gets the raw code of the key that was pressed or released.
  • Returns: the raw code of the key
hardware_keycode=(keycode)
Sets the raw code of the key that was pressed or released.
  • keycode: the raw code of the key
  • Returns: keycode
set_hardware_keycode(keycode)
Same as Gdk::EventKey#hardware_keycode=.
  • keycode: the raw code of the key
  • Returns: self
group
Gets the keyboard group.
  • Returns: the keyboard group
group=(group)
Sets a keyboard group.
  • group: a new keyboard group(Integer)
  • Returns: group
set_group(group)
Same as Gdk::EventKey#group=.
  • group: a new keyboard group(Integer)
  • Returns: self
Last modified:2009/06/05 17:40:41
Keyword(s):
References:[tut-gtk2-agtkw-draww] [Gdk::Keymap] [Ruby/GDK] [index-ruby-gdk2] [Gdk::Keyval] [Gdk::EventKey] [Gdk::Event] [News_20040308_1] [Gtk] [api-gdk-index] [Gtk::Widget]