Interface

Gio-2.0GioActionMapInterface

Interface for implementing ActionMap. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_add_action(action: Gio.Action): void;
    vfunc_lookup_action(action_name: string): Gio.Action;
    vfunc_remove_action(action_name: string): void;
}

Hierarchy (View Summary)

Index

Methods

  • Adds an action to the action_map.

    If the action map already contains an action with the same name as action then the old action is dropped from the action map.

    The action map takes its own reference on action.

    Parameters

    Returns void

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

    If no such action exists, returns NULL.

    Parameters

    • action_name: string

      the name of an action

    Returns Gio.Action

  • Removes the named action from the action map.

    If no action of this name is in the map then nothing happens.

    Parameters

    • action_name: string

      the name of the action

    Returns void