logo top
Main Page   Widgets   Namespaces   Book  

Gtk::ActionGroup Class Reference

Inheritance diagram for Gtk::ActionGroup:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~ActionGroup ()
GtkActionGroup* gobj ()
 Provides access to the underlying C GObject.

const GtkActionGroup* gobj () const
 Provides access to the underlying C GObject.

GtkActionGroup* gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

Glib::ustring get_name () const
 Gets the name of the action group.

Glib::RefPtr<Actionget_action (const Glib::ustring& action_name)
 Looks up an action in the action group by name.

Glib::RefPtr<const Actionget_action (const Glib::ustring& action_name) const
 Looks up an action in the action group by name.

Glib::ListHandle< Glib::RefPtr<
Action > > 
get_actions ()
 Lists the actions in the action group.

void add (const Glib::RefPtr<Action>& action)
void add (const Glib::RefPtr<Action>& action, const AccelKey& accel_key)
void add (const Glib::RefPtr<Action>& action, const Action::SlotActivate& slot)
void add (const Glib::RefPtr<Action>& action, const AccelKey& accel_key, const Action::SlotActivate& slot)
void remove (const Glib::RefPtr<Action>& action)
 Removes an action object from the action group.


Static Public Member Functions

Glib::RefPtr<ActionGroupcreate (const Glib::ustring& name=Glib::ustring())

Related Functions

(Note that these are not member functions.)

Glib::RefPtr<Gtk::ActionGroupwrap (GtkActionGroup* object, bool take_copy=false)

Constructor & Destructor Documentation

virtual Gtk::ActionGroup::~ActionGroup (  )  [virtual]
 


Member Function Documentation

void Gtk::ActionGroup::add ( const Glib::RefPtr<Action>&  action,
const AccelKey accel_key,
const Action::SlotActivate slot
 

void Gtk::ActionGroup::add ( const Glib::RefPtr<Action>&  action,
const Action::SlotActivate slot
 

void Gtk::ActionGroup::add ( const Glib::RefPtr<Action>&  action,
const AccelKey accel_key
 

void Gtk::ActionGroup::add ( const Glib::RefPtr<Action>&  action  ) 
 

Glib::RefPtr<ActionGroup> Gtk::ActionGroup::create ( const Glib::ustring name = Glib::ustring()  )  [static]
 

Glib::RefPtr<const Action> Gtk::ActionGroup::get_action ( const Glib::ustring action_name  )  const
 

Looks up an action in the action group by name.

Parameters:
action_name The name of the action.
Returns:
The action, or 0 if no action by that name exists
Since: 2.4.

Glib::RefPtr<Action> Gtk::ActionGroup::get_action ( const Glib::ustring action_name  ) 
 

Looks up an action in the action group by name.

Parameters:
action_name The name of the action.
Returns:
The action, or 0 if no action by that name exists
Since: 2.4.

Glib::ListHandle<Glib::RefPtr<Action>> Gtk::ActionGroup::get_actions (  ) 
 

Lists the actions in the action group.

Returns:
An allocated list of the action objects in the action group
Since: 2.4.

Glib::ustring Gtk::ActionGroup::get_name (  )  const
 

Gets the name of the action group.

Returns:
The name of the action group.
Since: 2.4.

const GtkActionGroup* Gtk::ActionGroup::gobj (  )  const [inline]
 

Provides access to the underlying C GObject.

Reimplemented from Glib::ObjectBase.

GtkActionGroup* Gtk::ActionGroup::gobj (  )  [inline]
 

Provides access to the underlying C GObject.

Reimplemented from Glib::ObjectBase.

GtkActionGroup* Gtk::ActionGroup::gobj_copy (  ) 
 

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

void Gtk::ActionGroup::remove ( const Glib::RefPtr<Action>&  action  ) 
 

Removes an action object from the action group.

Since: 2.4

Parameters:
action An action.


Friends And Related Function Documentation

Glib::RefPtr<Gtk::ActionGroup> wrap ( GtkActionGroup*  object,
bool  take_copy = false
[related]
 

Parameters:
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.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated for gtkmm 2.4 by Doxygen 1.3.4 © 1997-2001