Dillo v3.1.1-111-gd4f56d0d
|
#include <fltkcomplexbutton.hh>
Public Member Functions | |
virtual int | handle (int) |
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. | |
~ComplexButton () | |
int | value (int v) |
Sets the current value of the button. | |
char | value () const |
Returns the current value of the button (0 or 1). | |
Fl_Boxtype | down_box () const |
Returns the current down box type, which is drawn when value() is non-zero. | |
void | down_box (Fl_Boxtype b) |
Sets the down box type. | |
Protected Member Functions | |
virtual void | draw () |
Private Attributes | |
char | value_ |
char | oldval |
uchar | down_box_ |
Definition at line 30 of file 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.
[in] | X,Y,W,H | position and size of the widget |
[in] | L | widget label, default is no label |
Definition at line 122 of file fltkcomplexbutton.cc.
References down_box(), oldval, and value_.
ComplexButton::~ComplexButton | ( | ) |
Definition at line 130 of file fltkcomplexbutton.cc.
|
inline |
Returns the current down box type, which is drawn when value() is non-zero.
Fl_Boxtype |
Definition at line 55 of file fltkcomplexbutton.hh.
References down_box_.
Referenced by ComplexButton(), and draw().
|
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 |
Definition at line 62 of file fltkcomplexbutton.hh.
References down_box_.
|
protectedvirtual |
Definition at line 45 of file fltkcomplexbutton.cc.
References down_box(), and value().
|
virtual |
|
inline |
Returns the current value of the button (0 or 1).
Definition at line 49 of file fltkcomplexbutton.hh.
References value_.
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).
[in] | v | button value. |
Definition at line 32 of file fltkcomplexbutton.cc.
|
private |
Definition at line 33 of file fltkcomplexbutton.hh.
Referenced by down_box(), and down_box().
|
private |
Definition at line 32 of file fltkcomplexbutton.hh.
Referenced by ComplexButton(), handle(), and value().
|
private |
Definition at line 31 of file fltkcomplexbutton.hh.
Referenced by ComplexButton(), handle(), value(), and value().