Gtk.Binding_Set

Entities

Record Types

Subprograms

Description

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.

Activate

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.

Parameters
Self
Keyval

key value of the binding

Modifiers

key modifier of the binding

Object

object to activate when binding found

Return Value

True if a binding was found and activated

Add_Path

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

Parameters
Self
Path_Type

path type the pattern applies to

Path_Pattern

the actual match pattern

Priority

binding priority

By_Class

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.

Parameters
Object_Class

a valid Glib.Object.GObject class

Return Value

the binding set corresponding to Object_Class

Find

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.

Parameters
Set_Name

unique binding set name

Return Value

null or the specified binding set

From_Object_Free

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.

Parameters
B
Return Value

Gtk_Binding_Set

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;
Record fields
Set_Name
Priority
Widget_Path_Pspecs
Widget_Class_Pspecs
Class_Branch_Pspecs
Entries
Current
Parsed

Gtk_Binding_Set_New

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.

Parameters
Set_Name

unique name of this binding set

Return Value

new binding set

Gtk_New

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.

Parameters
Self
Set_Name

unique name of this binding set @return new binding set