Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SimpleActionGroup

[14:7] extends: object

GSimpleActionGroup is a hash table filled with [iface@Gio.Action] objects, implementing the [iface@Gio.ActionGroup] and [iface@Gio.ActionMap] interfaces.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • SimpleActionGroup ()

    Creates a new, empty, #GSimpleActionGroup.

  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • asActionGroup ()

    Wraps this handle as ActionGroup.

    • @r A ActionGroup object.
  • asActionMap ()

    Wraps this handle as ActionMap.

    • @r A ActionMap object.
  • insert (object action)

    Adds an action to the action group. If the action group already contains an action with the same name as @action then the old action is dropped from the group. The action group takes its own reference on @action.

    • @p action is a #GAction.
    • @r None.
  • lookup (string action_name)

    Looks up the action with the name @action_name in the group. If no such action exists, returns %NULL.

    • @p action_name is the name of an action.
  • remove (string action_name)

    Removes the named action from the action group. If no action of this name is in the group then nothing happens.

    • @p action_name is the name of the action.
    • @r None.