A button with a "checkmark" to show its status. More...
Public Member Functions | |
Fl_Check_Button (int X, int Y, int W, int H, const char *L=0) | |
Creates a new Fl_Check_Button widget using the given position, size, and label string. |
A button with a "checkmark" to show its status.
Buttons generate callbacks when they are clicked by the user. You control exactly when and how by changing the values for type() and when().
The Fl_Check_Button subclass displays its "ON" state by showing a "checkmark" rather than drawing itself pushed in.
Fl_Check_Button::Fl_Check_Button | ( | int | X, | |
int | Y, | |||
int | W, | |||
int | H, | |||
const char * | L = 0 | |||
) |
Creates a new Fl_Check_Button widget using the given position, size, and label string.
The default box type is FL_NO_BOX, which draws the label w/o a box right of the checkmark.
The selection_color() sets the color of the checkmark. Default is FL_FOREGROUND_COLOR (usually black).
You can use down_box() to change the box type of the checkmark. Default is FL_DOWN_BOX.
[in] | X,Y,W,H | position and size of the widget |
[in] | L | widget label, default is no label |