gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Structs.BindingSet

Contents

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

Synopsis

Exported types

newZeroBindingSet :: MonadIO m => m BindingSet Source #

Construct a BindingSet struct initialized to zero.

Methods

activate

bindingSetActivate Source #

Arguments

:: (HasCallStack, MonadIO m, IsObject a) 
=> BindingSet

bindingSet: a BindingSet set to activate

-> Word32

keyval: key value of the binding

-> [ModifierType]

modifiers: key modifier of the binding

-> a

object: object to activate when binding found

-> m Bool

Returns: True if a binding was found and activated

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

addPath

bindingSetAddPath Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> BindingSet

bindingSet: a BindingSet to add a path to

-> PathType

pathType: path type the pattern applies to

-> Text

pathPattern: the actual match pattern

-> PathPriorityType

priority: binding priority

-> m () 

Deprecated: (Since version 3.0)

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

In GTK+ 3, these match patterns are unused.

find

bindingSetFind Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

setName: unique binding set name

-> m (Maybe BindingSet)

Returns: Nothing or the specified binding set

Find a binding set by its globally unique name.

The setName can either be a name used for gtk_binding_set_new() or the type name of a class used in gtk_binding_set_by_class().

Properties

classBranchPspecs

current

entries

parsed

priority

setName

widgetClassPspecs

widgetPathPspecs