install_action


Description:

public void install_action (string action_name, uint key_val, ModifierType modifiers, owned BindingActionFunc callback)

Installs a new action inside a BindingPool.

The action is bound to key_val and modifiers.

The same action name can be used for multiple key_val, modifiers pairs.

When an action has been activated using activate the passed callback will be invoked (with data).

Actions can be blocked with block_action and then unblocked using unblock_action.

Parameters:

this

a BindingPool

action_name

the name of the action

key_val

key symbol

modifiers

bitmask of modifiers

callback

function to be called when the action is activated

data

data to be passed to callback

notify

function to be called when the action is removed from the pool




2022 vala-language.org