A binding set maintains a list of activatable key bindings. A single binding set can match multiple types of widgets. Similar to style contexts, can be matched by any information contained in a widgets Gtk.Widget.Gtk_Widget_Path. When a binding within a set is matched upon activation, an action signal is emitted on the target widget to carry out the actual activation.
function Activate
(Self : Gtk_Binding_Set;
Keyval : Guint;
Modifiers : Gdk.Types.Gdk_Modifier_Type;
Object : not null access Glib.Object.GObject_Record'Class)
return Boolean
Find a key binding matching Keyval and Modifiers within Binding_Set and activate the binding on Object.
key value of the binding
key modifier of the binding
object to activate when binding found
True if a binding was found and activated
procedure Add_Path
(Self : Gtk_Binding_Set;
Path_Type : Gtk.Enums.Gtk_Path_Type;
Path_Pattern : UTF8_String;
Priority : Gtk.Enums.Gtk_Path_Priority_Type)
This function was used internally by the GtkRC parsing mechanism to assign match patterns to Gtk.Binding_Set.Gtk_Binding_Set structures. In GTK+ 3, these match patterns are unused. Deprecated since 3.0, 1
path type the pattern applies to
the actual match pattern
binding priority
function By_Class (Object_Class : System.Address) return Gtk_Binding_Set
This function returns the binding set named after the type name of the passed in class structure. New binding sets are created on demand by this function.
a valid Glib.Object.GObject class
the binding set corresponding to Object_Class
function Find (Set_Name : UTF8_String) return Gtk_Binding_Set
Find a binding set by its globally unique name. The Set_Name can either be a name used for Gtk.Binding_Set.Gtk_New or the type name of a class used in Gtk.Binding_Set.By_Class.
unique binding set name
null or the specified binding set
function From_Object_Free (B : access Gtk_Binding_Set) return Gtk_Binding_Set
A binding set maintains a list of activatable key bindings. A single binding set can match multiple types of widgets. Similar to style contexts, can be matched by any information contained in a widgets Gtk.Widget.Gtk_Widget_Path. When a binding within a set is matched upon activation, an action signal is emitted on the target widget to carry out the actual activation.
type Gtk_Binding_Set is record
Set_Name : Gtkada.Types.Chars_Ptr;
Priority : Glib.Gint := 0;
Widget_Path_Pspecs : System.Address := System.Null_Address;
Widget_Class_Pspecs : System.Address := System.Null_Address;
Class_Branch_Pspecs : System.Address := System.Null_Address;
Entries : System.Address;
Current : System.Address := System.Null_Address;
Parsed : Guint;
end record;
function Gtk_Binding_Set_New
(Set_Name : UTF8_String) return Gtk_Binding_Set
GTK+ maintains a global list of binding sets. Each binding set has a unique name which needs to be specified upon creation.
unique name of this binding set
new binding set
procedure Gtk_New (Self : out Gtk_Binding_Set; Set_Name : UTF8_String)
GTK+ maintains a global list of binding sets. Each binding set has a unique name which needs to be specified upon creation.
unique name of this binding set @return new binding set