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
- Adw::Application
- Adw::ApplicationWindow
- Gio::Application
- Gio::SimpleActionGroup
- Gtk::Application
- Gtk::ApplicationWindow
Defined in:
lib/gi-crystal/src/auto/gio-2.0/action_map.crConstructors
-
.cast(obj : GObject::Object) : self
Cast a
GObject::Objecttoself, throws aTypeCastErrorif the cast can't be made.
Class Method Summary
Instance Method Summary
- #add_action(action : Gio::Action) : Nil
- #add_action_entries(entries : Enumerable(Gio::ActionEntry), user_data : Pointer(Void) | Nil) : Nil
- #lookup_action(action_name : String) : Gio::Action | Nil
- #remove_action(action_name : String) : Nil
- #remove_action_entries(entries : Enumerable(Gio::ActionEntry)) : Nil
- #remove_action_entries(*entries : Gio::ActionEntry)
- #to_unsafe
Constructor Detail
Class Method Detail
Instance Method Detail
def add_action_entries(entries : Enumerable(Gio::ActionEntry), user_data : Pointer(Void) | Nil) : Nil
#