Erstellen  Editieren  FrontPage  Index  Suchen  Veränderungen  Verlauf  RSS  Login

Gtk::CellRendererAccel

class Gtk::CellRendererAccel

Gtk::CellRendererAccel displays a keyboard accelerator (i.e. a key combination like <Control>-a). If the cell renderer is editable, the accelerator can be changed by simply typing the new combination.

The Gtk::CellRendererAccel cell renderer was added in GTK+ 2.10.

Class Methods

Gtk::CellRendererAccel.new
Creates a new Gtk::CellRendererAccel. Since 2.10
  • Returns: the new cell renderer
accel_key
Gets the keyval of the accelerator. Since 2.10
  • Returns: The keyval of the accelerator
accel_key=(accel_key)
Sets the keyval of the accelerator. Since 2.10
  • accel_key: The keyval of the accelerator
  • Returns: accel_key
set_accel_key(accel_key)
Same as accel_key=. Since 2.10
  • accel_key: The keyval of the accelerator
  • Returns: self
accel_mode
Gets the type of accelerators. Since 2.10
accel_mode=(accel_mode)
Sets the type of accelerators. Since 2.10
set_accel_mode(accel_mode)
Same as accel_mode=. Since 2.10
  • accel_mode: The type of accelerators
  • Returns: self
accel_mods
Gets the modifier mask of the accelerator. Since 2.10
accel_mods=(accel_mods)
Sets the modifier mask of the accelerator. Since 2.10
  • accel_mods: The modifier mask of the accelerator (GdkModifierType)
  • Returns: accel_mods
set_accel_mods(accel_mods)
Same as accel_mods=. Since 2.10
  • accel_mods: The modifier mask of the accelerator (GdkModifierType)
  • Returns: self
keycode
Gets the hardware keycode of the accelerator. Since 2.10
  • Returns: The hardware keycode of the accelerator
keycode=(keycode)
Sets the hardware keycode of the accelerator. Since 2.10
  • keycode: The hardware keycode of the accelerator
  • Returns: keycode
set_keycode(keycode)
Same as keycode=. Since 2.10
  • keycode: The hardware keycode of the accelerator
  • Returns: self

Properties

accel-key: Integer (Read/Write)
The keyval of the accelerator Since 2.10
accel-mode: Gtk::CellRendererAccel#Mode (Read/Write)
The type of accelerators Since 2.10 Determines if the edited accelerators are GTK+ accelerators. If they are, consumed modifiers are suppressed, only accelerators accepted by GTK+ are allowed, and the accelerators are rendered in the same way as they are in menus.
accel-mods: Gdk::ModifierType (Read/Write)
The modifier mask of the accelerator (GdkModifierType) Since 2.10
keycode: Integer (Read/Write)
The hardware keycode of the accelerator. Note that the hardware keycode is only relevant if the key does not have a keyval. Normally, the keyboard configuration should assign keyvals to all keys. Since 2.10

Signals

accel-cleared: self, path_string
Gets emitted when the user has removed the accelerator. Since 2.10
  • self: the object reveiving the signal
  • path_string: the path identifying the row of the edited cell
accel-edited: self, path_string, accel_key, accel_mods, hardware_key
Gets emitted when the user has selected a new accelerator. Since 2.10
  • self: the object reveiving the signal
  • path_string: the path identifying the row of the edited cell
  • accel_key: the new accelerator keyval
  • accel_mods: the new acclerator modifier mask (Gdk::ModifierType#ModifierType?)
  • hardware_keycode: the keycode of the new accelerator

ChangeLog

  • 2007-02-03: Added for GTK+-2.10. - Masao?
Zuletzt geändert:2007/02/03 03:57:53
Stichworte:
Referenzen:[Gtk::CellRendererAccel]