Class Index Cross Index Namespace Index

Class Gtk::CheckButton

Button with indicator
Contained in: Gtk
Derived from: Gtk::ToggleButton
Derived by: Gtk::RadioButton

#include <gtk--/checkbutton.h>


public function member index:

CheckButton();
CheckButton(const string& label, gfloat x=0.5, gfloat y=0.5);
GtkCheckButton* gtkobj();
const GtkCheckButton* gtkobj() const;
static bool isA(Object* object);
virtual ~CheckButton();
 

protected function member index:

virtual void draw_indicator_impl(GdkRectangle* p0);
 

Description:

The checkbutton is a small button with a lable next to it. It can be toggled on or off.


Function Member Descriptions:

Gtk::CheckButton::CheckButton - Create an empty check button.

CheckButton();
With an empty button, you can Gtk::Button::add a widget such as a Gtk::Pixmap or Gtk::Box.

If you just wish to add a Gtk::Label, you may want to use the {Gtk::CheckButton(const string &label)} ctor directly instead.



Gtk::CheckButton::CheckButton - Create a check button with a label.

CheckButton(const string& label, gfloat x=0.5, gfloat y=0.5);
You won't be able to add a widget in this button since it already has a Gtk::Label in it.


Gtk::CheckButton::draw_indicator_impl - Emited on button redraw to update indicator.

virtual void draw_indicator_impl(GdkRectangle* p0);
Triggered when the button is redrawn (e.g.after being toggled) Overload this signal if you want to implement your own check button look. Otherwise, you most likely don't care about it. The GdkRectangle specifies the area of the widget which will get redrawn.


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

GtkCheckButton* gtkobj();

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

static bool isA(Object* object);