class Gio::SimpleActionGroup

Overview

#GSimpleActionGroup is a hash table filled with #GAction objects, implementing the #GActionGroup and #GActionMap interfaces.

Included Modules

Defined in:

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

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Gio::ActionMap

add_action(action : Gio::Action) : Nil add_action, add_action_entries(entries : Enumerable(Gio::ActionEntry), user_data : Pointer(Void) | Nil) : Nil add_action_entries, lookup_action(action_name : String) : Gio::Action | Nil lookup_action, remove_action(action_name : String) : Nil remove_action, to_unsafe to_unsafe

Constructor methods inherited from module Gio::ActionMap

cast(obj : GObject::Object) : self cast

Class methods inherited from module Gio::ActionMap

cast?(obj : GObject::Object) : self | Nil cast?, g_type : UInt64 g_type

Instance methods inherited from module Gio::ActionGroup

action_added(action_name : String) : Nil action_added, action_added_signal action_added_signal, action_enabled(action_name : String) : Bool action_enabled, action_enabled_changed(action_name : String, enabled : Bool) : Nil action_enabled_changed, action_enabled_changed_signal action_enabled_changed_signal, action_parameter_type(action_name : String) : GLib::VariantType | Nil action_parameter_type, action_removed(action_name : String) : Nil action_removed, action_removed_signal action_removed_signal, action_state(action_name : String) : GLib::Variant | Nil action_state, action_state_changed(action_name : String, state : _) : Nil action_state_changed, action_state_changed_signal action_state_changed_signal, action_state_hint(action_name : String) : GLib::Variant | Nil action_state_hint, action_state_type(action_name : String) : GLib::VariantType | Nil action_state_type, activate_action(action_name : String, parameter : _ | Nil) : Nil activate_action, change_action_state(action_name : String, value : _) : Nil change_action_state, has_action(action_name : String) : Bool has_action, list_actions : Enumerable(String) list_actions, query_action(action_name : String, enabled : Bool) : Bool query_action, to_unsafe to_unsafe

Constructor methods inherited from module Gio::ActionGroup

cast(obj : GObject::Object) : self cast

Class methods inherited from module Gio::ActionGroup

cast?(obj : GObject::Object) : self | Nil cast?, g_type : UInt64 g_type

Instance methods inherited from class GObject::Object

==(other : self) ==, bind_property(source_property : String, target : GObject::Object, target_property : String, flags : GObject::BindingFlags) : GObject::Binding bind_property, bind_property_full(source_property : String, target : GObject::Object, target_property : String, flags : GObject::BindingFlags, transform_to : GObject::Closure, transform_from : GObject::Closure) : GObject::Binding bind_property_full, data(key : String) : Pointer(Void) | Nil data, finalize finalize, freeze_notify : Nil freeze_notify, getv(names : Enumerable(String), values : Enumerable(_)) : Nil getv, hash(hasher) hash, notify(property_name : String) : Nil notify, notify_by_pspec(pspec : GObject::ParamSpec) : Nil notify_by_pspec, notify_signal notify_signal, property(property_name : String, value : _) : Nil property, qdata(quark : UInt32) : Pointer(Void) | Nil qdata, ref_count : UInt32 ref_count, run_dispose : Nil run_dispose, set_data(key : String, data : Pointer(Void) | Nil) : Nil set_data, set_property(property_name : String, value : _) : Nil set_property, steal_data(key : String) : Pointer(Void) | Nil steal_data, steal_qdata(quark : UInt32) : Pointer(Void) | Nil steal_qdata, thaw_notify : Nil thaw_notify, to_unsafe : Pointer(Void) to_unsafe, watch_closure(closure : GObject::Closure) : Nil watch_closure

Constructor methods inherited from class GObject::Object

cast(obj : GObject::Object) : self cast, new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
new
new
, newv(object_type : UInt64, parameters : Enumerable(GObject::Parameter)) : self newv

Class methods inherited from class GObject::Object

cast?(obj : GObject::Object) : self | Nil cast?, compat_control(what : UInt64, data : Pointer(Void) | Nil) : UInt64 compat_control, g_type : UInt64 g_type, interface_find_property(g_iface : GObject::TypeInterface, property_name : String) : GObject::ParamSpec interface_find_property, interface_list_properties(g_iface : GObject::TypeInterface) : Enumerable(GObject::ParamSpec) interface_list_properties

Macros inherited from class GObject::Object

previous_vfunc(*args) previous_vfunc, previous_vfunc!(*args) previous_vfunc!, signal(signature) signal

Constructor Detail

def self.new : self #

Creates a new, empty, #GSimpleActionGroup.


[View source]

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


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

A convenience function for creating multiple #GSimpleAction instances and adding them to the action group.

DEPRECATED


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


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

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.

DEPRECATED


[View source]
def lookup(action_name : String) : Gio::Action #

Looks up the action with the name action_name in the group.

If no such action exists, returns nil.

DEPRECATED


[View source]
def remove(action_name : String) : Nil #

Removes the named action from the action group.

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

DEPRECATED


[View source]