BindingSet
final
class BindingSet {
}
- this
this(GtkBindingSet* gtkBindingSet, bool ownedRef)
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.
A destructor is present on this object, but not explicitly documented in the source.
- 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 gtk.BindingSet structures.
- getBindingSetStruct
GtkBindingSet* getBindingSetStruct(bool transferOwnership)
- getStruct
void* getStruct()
the main Gtk struct as a void*
- classBranchPspecs
ListSG classBranchPspecs [@property getter]
ListSG classBranchPspecs [@property setter]
- current
GtkBindingEntry* current [@property getter]
GtkBindingEntry* current [@property setter]
- entries
GtkBindingEntry* entries [@property getter]
GtkBindingEntry* entries [@property setter]
the key binding entries in this binding set
- parsed
uint parsed [@property getter]
uint parsed [@property setter]
whether this binding set stems from a CSS file and is reset upon theme changes
- priority
int priority [@property getter]
int priority [@property setter]
- setName
string setName [@property getter]
string setName [@property setter]
unique name of this binding set
- widgetClassPspecs
ListSG widgetClassPspecs [@property getter]
ListSG widgetClassPspecs [@property setter]
- widgetPathPspecs
ListSG widgetPathPspecs [@property getter]
ListSG widgetPathPspecs [@property setter]
- 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.
- gtkBindingSet
GtkBindingSet* gtkBindingSet;
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.WidgetPath 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.