![]() |
![]() |
Public Types | ||||
typedef RadioButtonGroup | Group | |||
Public Member Functions | ||||
int | get_current_value () const | |||
Obtains the value property of the currently active member of the group to which action belongs. | ||||
Group | get_group () | |||
Returns the list representing the radio group for this object. | ||||
const GtkRadioAction* | gobj () const | |||
Provides access to the underlying C GObject. | ||||
GtkRadioAction* | gobj () | |||
Provides access to the underlying C GObject. | ||||
GtkRadioAction* | gobj_copy () | |||
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | ||||
Glib::PropertyProxy_ReadOnly< int > | property_current_value () const | |||
The value property of the currently active member of the group to which this action belongs. | ||||
Glib::PropertyProxy<int> | property_current_value () | |||
The value property of the currently active member of the group to which this action belongs. | ||||
Glib::PropertyProxy_ReadOnly< int > | property_value () const | |||
The value returned by gtk_radio_action_get_current_value when this action is the current action of its group. | ||||
Glib::PropertyProxy<int> | property_value () | |||
The value returned by gtk_radio_action_get_current_value when this action is the current action of its group. | ||||
void | set_current_value (int current_value) | |||
void | set_group (Group& group) | |||
Glib::SignalProxy1< void, const Glib::RefPtr<RadioAction >&> | signal_changed () | |||
The changed signal is emitted on every member of a radio group when the active member is changed. | ||||
virtual | ~RadioAction () | |||
Static Public Member Functions | ||||
static Glib::RefPtr<RadioAction> | create (Group& group, const Glib::ustring& name, const Gtk::StockID& stock_id, const Glib::ustring& label=Glib::ustring(), const Glib::ustring& tooltip=Glib::ustring()) | |||
static Glib::RefPtr<RadioAction> | create (Group& group, const Glib::ustring& name, const Glib::ustring& label=Glib::ustring(), const Glib::ustring& tooltip=Glib::ustring()) | |||
static Glib::RefPtr<RadioAction> | create () | |||
Protected Member Functions | ||||
virtual void | on_changed (const Glib::RefPtr<RadioAction>& current) | |||
RadioAction (Group& group, const Glib::ustring& name, const StockID& stock_id, const Glib::ustring& label=Glib::ustring(), const Glib::ustring& tooltip=Glib::ustring()) | ||||
RadioAction () | ||||
Related Functions | ||||
(Note that these are not member functions.) | ||||
Glib::RefPtr<Gtk::RadioAction> | wrap (GtkRadioAction* object, bool take_copy=false) | |||
|
virtual Gtk::RadioAction::~RadioAction | ( | ) | [virtual] |
Gtk::RadioAction::RadioAction | ( | ) | [protected] |
Gtk::RadioAction::RadioAction | ( | Group& | group, | |
const Glib::ustring & | name, | |||
const StockID& | stock_id, | |||
const Glib::ustring & | label = Glib::ustring() , |
|||
const Glib::ustring & | tooltip = Glib::ustring() | |||
) | [explicit, protected] |
static Glib::RefPtr<RadioAction> Gtk::RadioAction::create | ( | Group& | group, | |
const Glib::ustring & | name, | |||
const Gtk::StockID& | stock_id, | |||
const Glib::ustring & | label = Glib::ustring() , |
|||
const Glib::ustring & | tooltip = Glib::ustring() | |||
) | [static] |
static Glib::RefPtr<RadioAction> Gtk::RadioAction::create | ( | Group& | group, | |
const Glib::ustring & | name, | |||
const Glib::ustring & | label = Glib::ustring() , |
|||
const Glib::ustring & | tooltip = Glib::ustring() | |||
) | [static] |
static Glib::RefPtr<RadioAction> Gtk::RadioAction::create | ( | ) | [static] |
Reimplemented from Gtk::ToggleAction.
int Gtk::RadioAction::get_current_value | ( | ) | const |
Obtains the value property of the currently active member of the group to which action belongs.
Group Gtk::RadioAction::get_group | ( | ) |
Returns the list representing the radio group for this object.
Note that the returned list is only valid until the next change to the group.
A common way to set up a group of radio group is the following:
GSList *group = <tt>0</tt>; GtkRadioAction *action; while (/<!-- -->* more actions to add *<!-- -->/) { action = gtk_radio_action_new (...); gtk_radio_action_set_group (action, group); group = gtk_radio_action_get_group (action); }
const GtkRadioAction* Gtk::RadioAction::gobj | ( | ) | const [inline] |
GtkRadioAction* Gtk::RadioAction::gobj | ( | ) | [inline] |
GtkRadioAction* Gtk::RadioAction::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Reimplemented from Gtk::ToggleAction.
virtual void Gtk::RadioAction::on_changed | ( | const Glib::RefPtr<RadioAction>& | current | ) | [protected, virtual] |
Glib::PropertyProxy_ReadOnly<int> Gtk::RadioAction::property_current_value | ( | ) | const |
The value property of the currently active member of the group to which this action belongs.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<int> Gtk::RadioAction::property_current_value | ( | ) |
The value property of the currently active member of the group to which this action belongs.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<int> Gtk::RadioAction::property_value | ( | ) | const |
The value returned by gtk_radio_action_get_current_value when this action is the current action of its group.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<int> Gtk::RadioAction::property_value | ( | ) |
The value returned by gtk_radio_action_get_current_value when this action is the current action of its group.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
void Gtk::RadioAction::set_current_value | ( | int | current_value | ) |
void Gtk::RadioAction::set_group | ( | Group& | group | ) |
Glib::SignalProxy1<void,const Glib::RefPtr<RadioAction>&> Gtk::RadioAction::signal_changed | ( | ) |
The changed signal is emitted on every member of a radio group when the active member is changed.
The signal is emitted after the activate signals for the previous and current active members.
current | the member of this action's group which has just been activated. |
void changed(const Glib::RefPtr<RadioAction>& current)
Glib::RefPtr<Gtk::RadioAction> wrap | ( | GtkRadioAction * | object, | |
bool | take_copy = false | |||
) | [related] |
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. |