module Gio::ActionMap

Overview

GActionMap is an interface for action containers.

The GActionMap interface is implemented by Gio::ActionGroup implementations that operate by containing a number of named Gio::Action instances, such as 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.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gio-2.0/action_map.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.cast(obj : GObject::Object) : self #

Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.


Class Method Detail

def self.cast?(obj : GObject::Object) : self | Nil #

def self.g_type : UInt64 #

Instance Method Detail

def add_action(action : Gio::Action) : Nil #

def add_action_entries(entries : Enumerable(Gio::ActionEntry), user_data : Pointer(Void) | Nil) : Nil #

def lookup_action(action_name : String) : Gio::Action | Nil #

def remove_action(action_name : String) : Nil #

def remove_action_entries(entries : Enumerable(Gio::ActionEntry)) : Nil #

def remove_action_entries(*entries : Gio::ActionEntry) #

abstract def to_unsafe #