BindingSet

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 #GtkWidgetPath. 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.

Constructors

this
this(GtkBindingSet* gtkBindingSet)

Sets our main struct and passes it to the parent class.

this
this(string setName)

GTK+ maintains a global list of binding sets. Each binding set has a unique name which needs to be specified upon creation.

Members

Functions

activate
bool activate(uint keyval, GdkModifierType modifiers, ObjectG object)

Find a key binding matching @keyval and @modifiers within @binding_set and activate the binding on @object.

addPath
void addPath(GtkPathType pathType, string pathPattern, GtkPathPriorityType priority)

This function was used internally by the GtkRC parsing mechanism to assign match patterns to #GtkBindingSet structures.

getBindingSetStruct
GtkBindingSet* getBindingSetStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

bindingsActivate
bool bindingsActivate(ObjectG object, uint keyval, GdkModifierType modifiers)

Find a key binding matching @keyval and @modifiers and activate the binding on @object.

bindingsActivateEvent
bool bindingsActivateEvent(ObjectG object, GdkEventKey* event)

Looks up key bindings for @object to find one matching @event, and if one was found, activate it.

byClass
BindingSet byClass(void* objectClass)

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.

find
BindingSet find(string setName)

Find a binding set by its globally unique name.

Variables

gtkBindingSet
GtkBindingSet* gtkBindingSet;

the main Gtk struct

Meta