glibmm 2.31.18
|
TODO (When the C API has docs is available). More...
#include <giomm/actionmap.h>
Public Member Functions | |
virtual | ~ActionMap () |
GActionMap* | gobj () |
Provides access to the underlying C GObject. | |
const GActionMap* | gobj () const |
Provides access to the underlying C GObject. | |
Glib::RefPtr< Action > | lookup_action (const Glib::ustring& action_name) |
Looks up the action with the name action_name in action_map. | |
Glib::RefPtr< const Action > | lookup_action (const Glib::ustring& action_name) const |
Looks up the action with the name action_name in action_map. | |
void | add_action (const Glib::RefPtr< Action >& action) |
Adds an action to the action_map. | |
void | remove_action (const Glib::ustring& action_name) |
Removes the named action from the action map. | |
virtual Glib::RefPtr< Action > | lookup_action_vfunc (const Glib::ustring& name) const |
virtual void | add_action_vfunc (Glib::RefPtr< Action > action) const |
virtual void | remove_action_vfunc (const Glib::ustring& name) |
Static Public Member Functions | |
static void | add_interface (GType gtype_implementer) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Gio::ActionMap > | wrap (GActionMap* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
TODO (When the C API has docs is available).
virtual Gio::ActionMap::~ActionMap | ( | ) | [virtual] |
void Gio::ActionMap::add_action | ( | const Glib::RefPtr< Action >& | action | ) |
Adds an action to the action_map.
If the action map already contains an action with the same name as action then the old action is dropped from the action map.
The action map takes its own reference on action.
action | A Action. |
virtual void Gio::ActionMap::add_action_vfunc | ( | Glib::RefPtr< Action > | action | ) | const [virtual] |
static void Gio::ActionMap::add_interface | ( | GType | gtype_implementer | ) | [static] |
GActionMap* Gio::ActionMap::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface.
Reimplemented in Gio::Application, and Gio::SimpleActionGroup.
const GActionMap* Gio::ActionMap::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface.
Reimplemented in Gio::Application, and Gio::SimpleActionGroup.
Glib::RefPtr<Action> Gio::ActionMap::lookup_action | ( | const Glib::ustring& | action_name | ) |
Looks up the action with the name action_name in action_map.
If no such action exists, returns 0
.
action_name | The name of an action. |
0
. Glib::RefPtr<const Action> Gio::ActionMap::lookup_action | ( | const Glib::ustring& | action_name | ) | const |
Looks up the action with the name action_name in action_map.
If no such action exists, returns 0
.
action_name | The name of an action. |
0
. virtual Glib::RefPtr<Action> Gio::ActionMap::lookup_action_vfunc | ( | const Glib::ustring& | name | ) | const [virtual] |
void Gio::ActionMap::remove_action | ( | const Glib::ustring& | action_name | ) |
Removes the named action from the action map.
If no action of this name is in the map then nothing happens.
action_name | The name of the action. |
virtual void Gio::ActionMap::remove_action_vfunc | ( | const Glib::ustring& | name | ) | [virtual] |
Glib::RefPtr< Gio::ActionMap > wrap | ( | GActionMap * | 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. |