#include <fltkcomplexbutton.hh>
Public Member Functions | |
| virtual int | handle (int) |
| ComplexButton (int X, int Y, int W, int H, const char *L=0) | |
| ~ComplexButton () | |
| int | value (int v) |
| char | value () const |
| Fl_Boxtype | down_box () const |
| void | down_box (Fl_Boxtype b) |
Protected Member Functions | |
| virtual void | draw () |
Private Attributes | |
| int | shortcut_ |
| char | value_ |
| char | oldval |
| uchar | down_box_ |
| 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.
| [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 | ( | ) |
| 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().
| [in] | b | down box type |
| Fl_Boxtype dw::fltk::ui::ComplexButton::down_box | ( | ) | const [inline] |
Returns the current down box type, which is drawn when value() is non-zero.
| Fl_Boxtype |
Referenced by ComplexButton(), and draw().
| void ComplexButton::draw | ( | ) | [protected, virtual] |
References down_box(), and value().
| char dw::fltk::ui::ComplexButton::value | ( | ) | const [inline] |
| int ComplexButton::value | ( | int | v | ) |
uchar dw::fltk::ui::ComplexButton::down_box_ [private] |
char dw::fltk::ui::ComplexButton::oldval [private] |
Referenced by ComplexButton(), handle(), and value().
int dw::fltk::ui::ComplexButton::shortcut_ [private] |
char dw::fltk::ui::ComplexButton::value_ [private] |
Referenced by ComplexButton(), handle(), and value().
1.5.9