class Gio::SimpleActionGroup
- Gio::SimpleActionGroup
- GObject::Object
- Reference
- Object
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.crConstructors
-
.new : self
Creates a new, empty, #GSimpleActionGroup.
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#add_entries(entries : Enumerable(Gio::ActionEntry), user_data : Pointer(Void)?) : Nil
A convenience function for creating multiple #GSimpleAction instances and adding them to the action group.
-
#insert(action : Gio::Action) : Nil
Adds an action to the action group.
-
#lookup(action_name : String) : Gio::Action
Looks up the action with the name @action_name in the group.
-
#remove(action_name : String) : Nil
Removes the named action from the action group.
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
add_action_entries,
lookup_action(action_name : String) : Gio::Action?
lookup_action,
remove_action(action_name : String) : Nil
remove_action,
to_unsafe
to_unsafe
Class methods inherited from module Gio::ActionMap
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?
action_parameter_type,
action_removed(action_name : String) : Nil
action_removed,
action_removed_signal
action_removed_signal,
action_state(action_name : String) : GLib::Variant?
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?
action_state_hint,
action_state_type(action_name : String) : GLib::VariantType?
action_state_type,
activate_action(action_name : String, parameter : _?) : 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
Class methods inherited from module Gio::ActionGroup
g_type : UInt64
g_type
Instance methods inherited from class GObject::Object
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)?
data,
finalize
finalize,
freeze_notify : Nil
freeze_notify,
getv(names : Enumerable(String), values : Enumerable(_)) : Nil
getv,
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)?
qdata,
ref_count : UInt32
ref_count,
run_dispose : Nil
run_dispose,
set_data(key : String, data : Pointer(Void)?) : Nil
set_data,
set_property(property_name : String, value : _) : Nil
set_property,
steal_data(key : String) : Pointer(Void)?
steal_data,
steal_qdata(quark : UInt32) : Pointer(Void)?
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,
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
compat_control(what : UInt64, data : Pointer(Void)?) : 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
Constructor Detail
Class Method Detail
Instance Method Detail
A convenience function for creating multiple #GSimpleAction instances and adding them to the action group.
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.
Looks up the action with the name @action_name in the group.
If no such action exists, returns nil
.