Index

Package: Cell_Renderer_Accel

Description

package Gtk.Cell_Renderer_Accel is

Gtk.Cell_Renderer_Accel.Gtk_Cell_Renderer_Accel 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.Cell_Renderer_Accel.Gtk_Cell_Renderer_Accel cell renderer was added in GTK+ 2.10.

Classes

Gtk_Cell_Renderer_Accel_Record

type Gtk_Cell_Renderer_Accel_Record is new Gtk_Cell_Renderer_Text_Record with null record;

Ancestors:

Primitive operations:

Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gtk.Cell_Renderer.Activate (Inherited)
Gtk.Cell_Renderer.Get_Aligned_Area (Inherited)
Gtk.Cell_Renderer.Get_Alignment (Inherited)
Gtk.Cell_Renderer.Get_Fixed_Size (Inherited)
Gtk.Cell_Renderer.Get_Padding (Inherited)
Gtk.Cell_Renderer.Get_Preferred_Height (Inherited)
Gtk.Cell_Renderer.Get_Preferred_Height_For_Width (Inherited)
Gtk.Cell_Renderer.Get_Preferred_Size (Inherited)
Gtk.Cell_Renderer.Get_Preferred_Width (Inherited)
Gtk.Cell_Renderer.Get_Preferred_Width_For_Height (Inherited)
Gtk.Cell_Renderer.Get_Request_Mode (Inherited)
Gtk.Cell_Renderer.Get_Sensitive (Inherited)
Gtk.Cell_Renderer.Get_Size (Inherited)
Gtk.Cell_Renderer.Get_State (Inherited)
Gtk.Cell_Renderer.Get_Visible (Inherited)
Gtk.Cell_Renderer.Is_Activatable (Inherited)
Gtk.Cell_Renderer.On_Editing_Canceled (Inherited)
Gtk.Cell_Renderer.On_Editing_Canceled (Inherited)
Gtk.Cell_Renderer.On_Editing_Started (Inherited)
Gtk.Cell_Renderer.On_Editing_Started (Inherited)
Gtk.Cell_Renderer.Render (Inherited)
Gtk.Cell_Renderer.Set_Alignment (Inherited)
Gtk.Cell_Renderer.Set_Fixed_Size (Inherited)
Gtk.Cell_Renderer.Set_Padding (Inherited)
Gtk.Cell_Renderer.Set_Sensitive (Inherited)
Gtk.Cell_Renderer.Set_Visible (Inherited)
Gtk.Cell_Renderer.Start_Editing (Inherited)
Gtk.Cell_Renderer.Stop_Editing (Inherited)
Gtk.Cell_Renderer_Text.On_Edited (Inherited)
Gtk.Cell_Renderer_Text.On_Edited (Inherited)
Gtk.Cell_Renderer_Text.Set_Fixed_Height_From_Font (Inherited)
On_Accel_Cleared
On_Accel_Cleared
On_Accel_Edited
On_Accel_Edited

Types

Gtk_Cell_Renderer_Accel

type Gtk_Cell_Renderer_Accel is access all Gtk_Cell_Renderer_Accel_Record'Class;

Cb_Gtk_Cell_Renderer_Accel_UTF8_String_Void

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);

Cb_GObject_UTF8_String_Void

type Cb_GObject_UTF8_String_Void is not null access procedure
     (Self        : access Glib.Object.GObject_Record'Class;
      Path_String : UTF8_String);

Cb_Gtk_Cell_Renderer_Accel_UTF8_String_Guint_Gdk_Modifier_Type_Guint_Void

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.Types.Gdk_Modifier_Type;
      Hardware_Keycode : Guint);

Cb_GObject_UTF8_String_Guint_Gdk_Modifier_Type_Guint_Void

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.Types.Gdk_Modifier_Type;
      Hardware_Keycode : Guint);

Constants & Global variables

Accel_Key_Property (Glib.Properties.Property_Uint)

Accel_Key_Property : constant Glib.Properties.Property_Uint;
The keyval of the accelerator.

Accel_Mode_Property (Glib.Properties.Property_Boxed)

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 (Glib.Properties.Property_Boxed)

Accel_Mods_Property : constant Glib.Properties.Property_Boxed;
Type: Gdk.Types.Gdk_Modifier_Type The modifier mask of the accelerator.

Keycode_Property (Glib.Properties.Property_Uint)

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.

Signal_Accel_Cleared (Glib.Signal_Name)

Signal_Accel_Cleared : constant Glib.Signal_Name := "accel-cleared";

Signal_Accel_Edited (Glib.Signal_Name)

Signal_Accel_Edited : constant Glib.Signal_Name := "accel-edited";

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Self: out Gtk_Cell_Renderer_Accel);

Initialize

procedure Initialize 
(Self: not null access Gtk_Cell_Renderer_Accel_Record'Class);
Creates a new Gtk.Cell_Renderer_Accel.Gtk_Cell_Renderer_Accel. Since: gtk+ 2.10

Gtk_Cell_Renderer_Accel_New

function Gtk_Cell_Renderer_Accel_New return Gtk_Cell_Renderer_Accel;
Creates a new Gtk.Cell_Renderer_Accel.Gtk_Cell_Renderer_Accel. Since: gtk+ 2.10

Get_Type

function Get_Type return Glib.GType;

On_Accel_Cleared

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);

On_Accel_Cleared

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.

On_Accel_Edited

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);

On_Accel_Edited

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: -- "path_string": the path identifying the row of the edited cell -- "accel_key": the new accelerator keyval -- "accel_mods": the new acclerator modifier mask -- "hardware_keycode": the keycode of the new accelerator