Index

Package: Binding_Set

Description

package Gtk.Binding_Set is
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.

Types

Gtk_Binding_Set

type Gtk_Binding_Set is record
      Set_Name : Interfaces.C.Strings.chars_ptr;
      Priority : Gint;
      Widget_Path_Pspecs : System.Address;
      Widget_Class_Pspecs : System.Address;
      Class_Branch_Pspecs : System.Address;
      Entries : System.Address;
      Current : System.Address;
      Parsed : Guint;
   end record;

Subprograms & Entries

From_Object_Free

function From_Object_Free 
(B: access Gtk_Binding_Set) return Gtk_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. "set_name": unique name of this binding set

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. "set_name": unique name of this binding set

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. "keyval": key value of the binding "modifiers": key modifier of the binding "object": object to activate when binding found

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

By_Class

function By_Class 
(Object_Class: System.Address) return Gtk_Binding_Set;

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. "set_name": unique binding set name