glibmm 2.31.2
|
SimpleActionGroup - A simple ActionGroup implementation. More...
#include <giomm/simpleactiongroup.h>
Public Member Functions | |
virtual | ~SimpleActionGroup () |
GSimpleActionGroup* | gobj () |
Provides access to the underlying C GObject. | |
const GSimpleActionGroup* | gobj () const |
Provides access to the underlying C GObject. | |
GSimpleActionGroup* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Glib::RefPtr< Action > | lookup (const Glib::ustring& action_name) |
Looks up the action with the name action_name in the group. | |
void | insert (const Glib::RefPtr< Action >& action) |
Adds an action to the action group. | |
void | remove (const Glib::ustring& action_name) |
Removes the named action from the action group. | |
Static Public Member Functions | |
static Glib::RefPtr < SimpleActionGroup > | create () |
Creates a new, empty, SimpleActionGroup. | |
Protected Member Functions | |
SimpleActionGroup () | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr < Gio::SimpleActionGroup > | wrap (GSimpleActionGroup* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
SimpleActionGroup - A simple ActionGroup implementation.
SimpleActionGroup is a hash table filled with Action objects, implementing the ActionGroup interface.
virtual Gio::SimpleActionGroup::~SimpleActionGroup | ( | ) | [virtual] |
Gio::SimpleActionGroup::SimpleActionGroup | ( | ) | [protected] |
static Glib::RefPtr<SimpleActionGroup> Gio::SimpleActionGroup::create | ( | ) | [static] |
GSimpleActionGroup* Gio::SimpleActionGroup::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gio::ActionGroup.
const GSimpleActionGroup* Gio::SimpleActionGroup::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gio::ActionGroup.
GSimpleActionGroup* Gio::SimpleActionGroup::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
void Gio::SimpleActionGroup::insert | ( | const Glib::RefPtr< Action >& | 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.
action | A Action. |
Glib::RefPtr<Action> Gio::SimpleActionGroup::lookup | ( | const Glib::ustring& | action_name | ) |
Looks up the action with the name action_name in the group.
If no such action exists, returns 0
.
action_name | The name of an action. |
0
. void Gio::SimpleActionGroup::remove | ( | const Glib::ustring& | action_name | ) |
Removes the named action from the action group.
If no action of this name is in the group then nothing happens.
action_name | The name of the action. |
Glib::RefPtr< Gio::SimpleActionGroup > wrap | ( | GSimpleActionGroup * | object, |
bool | take_copy = false |
||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |