Fl_Check_Button Class Reference

A button with a "checkmark" to show its status. More...

Inheritance diagram for Fl_Check_Button:
Fl_Light_Button Fl_Button Fl_Widget

List of all members.

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.

Detailed Description

A button with a "checkmark" to show its status.

Fl_Check_Button.png

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.


Constructor & Destructor Documentation

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.

Parameters:
[in] X,Y,W,H position and size of the widget
[in] L widget label, default is no label

The documentation for this class was generated from the following files: