Struct

GtkBindingSet

Description [src]

structGtkBindingSet{
gchar*set_name;
gintpriority;
gpointerwidget_path_pspecs;
gpointerwidget_class_pspecs;
gpointerclass_branch_pspecs;
GtkBindingEntry*entries;
GtkBindingEntry*current;
guintparsed:1;
}

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.

Structure members
set_name: gchar*

Unique name of this binding set.

priority: gint

Unused.

widget_path_pspecs: gpointer

Unused.

widget_class_pspecs: gpointer

Unused.

class_branch_pspecs: gpointer

Unused.

entries: GtkBindingEntry

The key binding entries in this binding set.

current: GtkBindingEntry

Implementation detail.

parsed: guint

Whether this binding set stems from a CSS file and is reset upon theme changes.

Functions

gtk_binding_set_by_class

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.

gtk_binding_set_find

Find a binding set by its globally unique name.

gtk_binding_set_new

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

Instance methods

gtk_binding_set_activate

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

gtk_binding_set_add_path

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

deprecated: 3.0

AltStyle によって変換されたページ (->オリジナル) /