#include <fltkcomplexbutton.hh>
| ComplexButton::ComplexButton |
( |
int |
X, |
|
|
int |
Y, |
|
|
int |
W, |
|
|
int |
H, |
|
|
const char * |
L = 0 |
|
) |
| |
The constructor creates the button using the given position, size and label.
- Parameters
-
| [in] | X,Y,W,H | position and size of the widget |
| [in] | L | widget label, default is no label |
References down_box(), oldval, and value_.
| ComplexButton::~ComplexButton |
( |
| ) |
|
| Fl_Boxtype dw::fltk::ui::ComplexButton::down_box |
( |
| ) |
const |
|
inline |
| void dw::fltk::ui::ComplexButton::down_box |
( |
Fl_Boxtype |
b | ) |
|
|
inline |
Sets the down box type. The default value of 0 causes FLTK to figure out the correct matching down version of box().
- Parameters
-
| void ComplexButton::draw |
( |
| ) |
|
|
protectedvirtual |
| int ComplexButton::handle |
( |
int |
event | ) |
|
|
virtual |
| int ComplexButton::value |
( |
int |
v | ) |
|
Sets the current value of the button. A non-zero value sets the button to 1 (ON), and zero sets it to 0 (OFF).
- Parameters
-
References oldval, and value_.
| char dw::fltk::ui::ComplexButton::value |
( |
| ) |
const |
|
inline |
Returns the current value of the button (0 or 1).
References value_.
Referenced by draw(), and handle().
| uchar dw::fltk::ui::ComplexButton::down_box_ |
|
private |
| char dw::fltk::ui::ComplexButton::oldval |
|
private |
| char dw::fltk::ui::ComplexButton::value_ |
|
private |
The documentation for this class was generated from the following files: