GtkCellRendererAccel
GtkCellRendererAccel — Renders a keyboard accelerator in a cell
|
|
Includes
#include <gtk/gtk.h>
Description
GtkCellRendererAccel 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 GtkCellRendererAccel cell renderer was added in GTK+ 2.10.
Types and Values
struct GtkCellRendererAccel
struct GtkCellRendererAccel;
enum GtkCellRendererAccelMode
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.
Property Details
The “accel-key” property
“accel-key” guint
The keyval of the accelerator.
Owner: GtkCellRendererAccel
Flags: Read / Write
Allowed values: <= G_MAXINT
Default value: 0
Since: 2.10
The “accel-mode” property
“accel-mode” GtkCellRendererAccelMode
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.
If the mode is set to GTK_CELL_RENDERER_ACCEL_MODE_MODIFIER_TAP
then bare modifiers can be set as accelerators by tapping (ie:
pressing and immediately releasing) them.
Owner: GtkCellRendererAccel
Flags: Read / Write
Default value: GTK_CELL_RENDERER_ACCEL_MODE_GTK
Since: 2.10
The “accel-mods” property
“accel-mods” GdkModifierType
The modifier mask of the accelerator.
Owner: GtkCellRendererAccel
Flags: Read / Write
Since: 2.10
The “keycode” property
“keycode” guint
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.
Owner: GtkCellRendererAccel
Flags: Read / Write
Allowed values: <= G_MAXINT
Default value: 0
Since: 2.10