ActionMap

interface ActionMap

GActionMap is an interface for action containers.

The GActionMap interface is implemented by iface@Gio.ActionGroup implementations that operate by containing a number of named iface@Gio.Action instances, such as class@Gio.SimpleActionGroup.

One useful application of this interface is to map the names of actions from various action groups to unique, prefixed names (e.g. by prepending "app." or "win."). This is the motivation for the ‘Map’ part of the interface name.

Skipped during bindings generation

  • parameter entries: Array parameter of type ActionEntry is not supported

  • parameter entries: Array parameter of type ActionEntry is not supported

Since

2.32

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val gioActionMapPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun addAction(action: Action)

Adds an action to the @action_map.

Link copied to clipboard
open fun lookupAction(actionName: String): Action?

Looks up the action with the name @action_name in @action_map.

Link copied to clipboard
open fun removeAction(actionName: String)

Removes the named action from the action map.