Inherits fltk::Button.
Inherited by fltk::LightButton, and fltk::RadioButton.
Public Member Functions | |
CheckButton (int x, int y, int w, int h, const char *l=0) | |
virtual void | draw () |
Static Public Attributes | |
static NamedStyle * | default_style |
This button turns the value() on and off each release of a click inside of it, and displays a checkmark to show the user this:
You can control the color of the checkbox with color() and the color of the checkmark with textcolor(). You can make it draw different colors when turned on by setting selection_color() and selection_textcolor() on the widget (these are ignored if set in an inherited style()).