Class Index Cross Index Namespace Index

Class Gtk::RadioButton

Group of checkbuttons
Contained in: Gtk
Derived from: Gtk::CheckButton
Derived by: none

#include <gtk--/radiobutton.h>


public function member index:

RadioButton();
RadioButton(const string& label, gfloat xalign=0.5, gfloat yalign=0.5);
RadioButton(Group& groupx);
RadioButton(Group& groupx, const string& label, gfloat xalign=0.5, gfloat yalign=0.5);
Group group();
GtkRadioButton* gtkobj();
const GtkRadioButton* gtkobj() const;
static bool isA(Object* object);
void set_group(Group p0);
virtual ~RadioButton();
 

Description:

A set of radiobuttons is placed together. They each look like a checkbutton, but only one button in the group can be checked or on at a time. When one is clicked, another is unclicked.


Function Member Descriptions:

Gtk::RadioButton::RadioButton - Constructor.

RadioButton(Group& groupx);
Create an empty button belonging to the specified group, in which you can add() a widget (e.g. a Gtk_Pixmap). If you wish to add a Gtk_Label, you may want to use the {RadioButton(const string &label, Group)} ctor directly instead. Specify a 0 group if you want to create a new button group


Gtk::RadioButton::RadioButton - Constructor with label.

RadioButton(Group& groupx, const string& label, gfloat xalign=0.5, gfloat yalign=0.5);
Create a button belonging to the specified group, with a label inside. You won't be able to add a widget in this button since it already has a Gtk_Label in it. Specify a 0 group if you want to create a new button group


Gtk::RadioButton::gtkobj - Returns the underlaying gtk+ object.

GtkRadioButton* gtkobj();

Gtk::RadioButton::isA - Returns true if object is this type.

static bool isA(Object* object);

Gtk::RadioButton::set_group - Set the group that this radiobutton belongs to.

void set_group(Group p0);
Each radiobutton is a member of a group. This determines it's relationship with other widgets, so that when this radiobutton is clicked, it knows what other buttons need to be unclicked.