gi-gtk-3.0.37: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Structs.BindingEntry

Description

Each key binding element of a binding sets binding list is represented by a GtkBindingEntry.

Synopsis

Exported types

newtype BindingEntry Source #

Memory-managed wrapper type.

Constructors

BindingEntry (ManagedPtr BindingEntry) 

Instances

Instances details
Eq BindingEntry Source # 
Instance details

Defined in GI.Gtk.Structs.BindingEntry

BoxedPtr BindingEntry Source # 
Instance details

Defined in GI.Gtk.Structs.BindingEntry

CallocPtr BindingEntry Source # 
Instance details

Defined in GI.Gtk.Structs.BindingEntry

ManagedPtrNewtype BindingEntry Source # 
Instance details

Defined in GI.Gtk.Structs.BindingEntry

Methods

toManagedPtr :: BindingEntry -> ManagedPtr BindingEntry

tag ~ 'AttrSet => Constructible BindingEntry tag Source # 
Instance details

Defined in GI.Gtk.Structs.BindingEntry

Methods

new :: MonadIO m => (ManagedPtr BindingEntry -> BindingEntry) -> [AttrOp BindingEntry tag] -> m BindingEntry

newZeroBindingEntry :: MonadIO m => m BindingEntry Source #

Construct a BindingEntry struct initialized to zero.

Methods

addSignalFromString

bindingEntryAddSignalFromString Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> BindingSet

bindingSet: a BindingSet

-> Text

signalDesc: a signal description

-> m TokenType

Returns: TokenTypeNone if the signal was successfully parsed and added, the expected token otherwise

Parses a signal description from signalDesc and incorporates it into bindingSet.

Signal descriptions may either bind a key combination to one or more signals: > > bind "key" { > "signalname" (param, ...) > ... > }

Or they may also unbind a key combination: > > unbind "key"

Key combinations must be in a format that can be parsed by acceleratorParse.

Since: 3.0

addSignall

bindingEntryAddSignall Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> BindingSet

bindingSet: a BindingSet to add a signal to

-> Word32

keyval: key value

-> [ModifierType]

modifiers: key modifier

-> Text

signalName: signal name to be bound

-> [BindingArg]

bindingArgs: list of BindingArg signal arguments

-> m () 

Override or install a new key binding for keyval with modifiers on bindingSet.

remove

bindingEntryRemove Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> BindingSet

bindingSet: a BindingSet to remove an entry of

-> Word32

keyval: key value of binding to remove

-> [ModifierType]

modifiers: key modifier of binding to remove

-> m () 

Remove a binding previously installed via gtk_binding_entry_add_signal() on bindingSet.

skip

bindingEntrySkip Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> BindingSet

bindingSet: a BindingSet to skip an entry of

-> Word32

keyval: key value of binding to skip

-> [ModifierType]

modifiers: key modifier of binding to skip

-> m () 

Install a binding on bindingSet which causes key lookups to be aborted, to prevent bindings from lower priority sets to be activated.

Since: 2.12

Properties

bindingSet

binding set this entry belongs to

clearBindingEntryBindingSet :: MonadIO m => BindingEntry -> m () Source #

Set the value of the “binding_set” field to Nothing. When overloading is enabled, this is equivalent to

clear #bindingSet

getBindingEntryBindingSet :: MonadIO m => BindingEntry -> m (Maybe BindingSet) Source #

Get the value of the “binding_set” field. When overloading is enabled, this is equivalent to

get bindingEntry #bindingSet

setBindingEntryBindingSet :: MonadIO m => BindingEntry -> Ptr BindingSet -> m () Source #

Set the value of the “binding_set” field. When overloading is enabled, this is equivalent to

set bindingEntry [ #bindingSet := value ]

destroyed

implementation detail

getBindingEntryDestroyed :: MonadIO m => BindingEntry -> m Word32 Source #

Get the value of the “destroyed” field. When overloading is enabled, this is equivalent to

get bindingEntry #destroyed

setBindingEntryDestroyed :: MonadIO m => BindingEntry -> Word32 -> m () Source #

Set the value of the “destroyed” field. When overloading is enabled, this is equivalent to

set bindingEntry [ #destroyed := value ]

hashNext

implementation detail

clearBindingEntryHashNext :: MonadIO m => BindingEntry -> m () Source #

Set the value of the “hash_next” field to Nothing. When overloading is enabled, this is equivalent to

clear #hashNext

getBindingEntryHashNext :: MonadIO m => BindingEntry -> m (Maybe BindingEntry) Source #

Get the value of the “hash_next” field. When overloading is enabled, this is equivalent to

get bindingEntry #hashNext

setBindingEntryHashNext :: MonadIO m => BindingEntry -> Ptr BindingEntry -> m () Source #

Set the value of the “hash_next” field. When overloading is enabled, this is equivalent to

set bindingEntry [ #hashNext := value ]

inEmission

implementation detail

getBindingEntryInEmission :: MonadIO m => BindingEntry -> m Word32 Source #

Get the value of the “in_emission” field. When overloading is enabled, this is equivalent to

get bindingEntry #inEmission

setBindingEntryInEmission :: MonadIO m => BindingEntry -> Word32 -> m () Source #

Set the value of the “in_emission” field. When overloading is enabled, this is equivalent to

set bindingEntry [ #inEmission := value ]

keyval

key value to match

getBindingEntryKeyval :: MonadIO m => BindingEntry -> m Word32 Source #

Get the value of the “keyval” field. When overloading is enabled, this is equivalent to

get bindingEntry #keyval

setBindingEntryKeyval :: MonadIO m => BindingEntry -> Word32 -> m () Source #

Set the value of the “keyval” field. When overloading is enabled, this is equivalent to

set bindingEntry [ #keyval := value ]

marksUnbound

implementation detail

getBindingEntryMarksUnbound :: MonadIO m => BindingEntry -> m Word32 Source #

Get the value of the “marks_unbound” field. When overloading is enabled, this is equivalent to

get bindingEntry #marksUnbound

setBindingEntryMarksUnbound :: MonadIO m => BindingEntry -> Word32 -> m () Source #

Set the value of the “marks_unbound” field. When overloading is enabled, this is equivalent to

set bindingEntry [ #marksUnbound := value ]

modifiers

key modifiers to match

getBindingEntryModifiers :: MonadIO m => BindingEntry -> m [ModifierType] Source #

Get the value of the “modifiers” field. When overloading is enabled, this is equivalent to

get bindingEntry #modifiers

setBindingEntryModifiers :: MonadIO m => BindingEntry -> [ModifierType] -> m () Source #

Set the value of the “modifiers” field. When overloading is enabled, this is equivalent to

set bindingEntry [ #modifiers := value ]

setNext

linked list of entries maintained by binding set

clearBindingEntrySetNext :: MonadIO m => BindingEntry -> m () Source #

Set the value of the “set_next” field to Nothing. When overloading is enabled, this is equivalent to

clear #setNext

getBindingEntrySetNext :: MonadIO m => BindingEntry -> m (Maybe BindingEntry) Source #

Get the value of the “set_next” field. When overloading is enabled, this is equivalent to

get bindingEntry #setNext

setBindingEntrySetNext :: MonadIO m => BindingEntry -> Ptr BindingEntry -> m () Source #

Set the value of the “set_next” field. When overloading is enabled, this is equivalent to

set bindingEntry [ #setNext := value ]

signals

action signals of this entry

clearBindingEntrySignals :: MonadIO m => BindingEntry -> m () Source #

Set the value of the “signals” field to Nothing. When overloading is enabled, this is equivalent to

clear #signals

getBindingEntrySignals :: MonadIO m => BindingEntry -> m (Maybe BindingSignal) Source #

Get the value of the “signals” field. When overloading is enabled, this is equivalent to

get bindingEntry #signals

setBindingEntrySignals :: MonadIO m => BindingEntry -> Ptr BindingSignal -> m () Source #

Set the value of the “signals” field. When overloading is enabled, this is equivalent to

set bindingEntry [ #signals := value ]