fltk::CheckButton Class Reference

Inherits fltk::Button.

Inherited by fltk::LightButton, and fltk::RadioButton.

List of all members.

Public Member Functions

 CheckButton (int x, int y, int w, int h, const char *l=0)
virtual void draw ()

Static Public Attributes

static NamedStyledefault_style

Detailed Description

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:

Fl_Check_Button.gif

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()).