Renders a keyboard accelerator in a cell
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.
<group>Trees and Lists</group>
Accel_Key_Property : constant Glib.Properties.Property_Uint;
The keyval of the accelerator.
Accel_Mode_Property : constant Glib.Properties.Property_Boxed;
Type: Cell_Renderer_Accel_Mode 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_Property : constant Gdk.Enums.Property_Gdk_Modifier_Type;
Type: Gdk.Enums.Gdk_Modifier_Type The modifier mask of the accelerator.
type Cb_GObject_UTF8_String_Guint_Gdk_Modifier_Type_Guint_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
Path_String : UTF8_String;
Accel_Key : Guint;
Accel_Mods : Gdk.Enums.Gdk_Modifier_Type;
Hardware_Keycode : Guint);
type Cb_GObject_UTF8_String_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
Path_String : UTF8_String);
type Cb_Gtk_Cell_Renderer_Accel_UTF8_String_Guint_Gdk_Modifier_Type_Guint_Void is not null access procedure
(Self : access Gtk_Cell_Renderer_Accel_Record'Class;
Path_String : UTF8_String;
Accel_Key : Guint;
Accel_Mods : Gdk.Enums.Gdk_Modifier_Type;
Hardware_Keycode : Guint);
type Cb_Gtk_Cell_Renderer_Accel_UTF8_String_Void is not null access procedure
(Self : access Gtk_Cell_Renderer_Accel_Record'Class;
Path_String : UTF8_String);
function Get_Type return Glib.GType
type Gtk_Cell_Renderer_Accel is access all Gtk_Cell_Renderer_Accel_Record'Class;
function Gtk_Cell_Renderer_Accel_New return Gtk_Cell_Renderer_Accel
Creates a new GtkCellRendererAccel.
type Gtk_Cell_Renderer_Accel_Record is new Gtk_Cell_Renderer_Text_Record with null record;
procedure Gtk_New (Self : out Gtk_Cell_Renderer_Accel)
Creates a new GtkCellRendererAccel. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
procedure Initialize
(Self : not null access Gtk_Cell_Renderer_Accel_Record'Class)
Creates a new GtkCellRendererAccel. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
Keycode_Property : constant Glib.Properties.Property_Uint;
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.
procedure On_Accel_Cleared
(Self : not null access Gtk_Cell_Renderer_Accel_Record;
Call : Cb_GObject_UTF8_String_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Gets emitted when the user has removed the accelerator.
procedure On_Accel_Cleared
(Self : not null access Gtk_Cell_Renderer_Accel_Record;
Call : Cb_Gtk_Cell_Renderer_Accel_UTF8_String_Void;
After : Boolean := False)
Gets emitted when the user has removed the accelerator.
procedure On_Accel_Edited
(Self : not null access Gtk_Cell_Renderer_Accel_Record;
Call : Cb_GObject_UTF8_String_Guint_Gdk_Modifier_Type_Guint_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Gets emitted when the user has selected a new accelerator.
Callback parameters: -- @param Path_String the path identifying the row of the edited cell -- @param Accel_Key the new accelerator keyval -- @param Accel_Mods the new accelerator modifier mask -- @param Hardware_Keycode the keycode of the new accelerator
procedure On_Accel_Edited
(Self : not null access Gtk_Cell_Renderer_Accel_Record;
Call : Cb_Gtk_Cell_Renderer_Accel_UTF8_String_Guint_Gdk_Modifier_Type_Guint_Void;
After : Boolean := False)
Gets emitted when the user has selected a new accelerator.
Callback parameters: -- @param Path_String the path identifying the row of the edited cell -- @param Accel_Key the new accelerator keyval -- @param Accel_Mods the new accelerator modifier mask -- @param Hardware_Keycode the keycode of the new accelerator
Signal_Accel_Cleared : constant Glib.Signal_Name := "accel-cleared";
Gets emitted when the user has removed the accelerator.
Signal_Accel_Edited : constant Glib.Signal_Name := "accel-edited";
Gets emitted when the user has selected a new accelerator.
Callback parameters: -- @param Path_String the path identifying the row of the edited cell -- @param Accel_Key the new accelerator keyval -- @param Accel_Mods the new accelerator modifier mask -- @param Hardware_Keycode the keycode of the new accelerator