Fl_Round_Button Class Reference

Buttons generate callbacks when they are clicked by the user. More...

#include <Fl_Round_Button.H>

Inheritance diagram for Fl_Round_Button:
Fl_Light_Button Fl_Button Fl_Widget Fl_Radio_Round_Button

List of all members.

Public Member Functions

 Fl_Round_Button (int x, int y, int w, int h, const char *l=0)
 Creates a new Fl_Round_Button widget using the given position, size, and label string.

Detailed Description

Buttons generate callbacks when they are clicked by the user.

You control exactly when and how by changing the values for type() and when().

Fl_Round_Button.png

The Fl_Round_Button subclass display the "on" state by turning on a light, rather than drawing pushed in. The shape of the "light" is initially set to FL_ROUND_DOWN_BOX. The color of the light when on is controlled with selection_color(), which defaults to FL_FOREGROUND_COLOR.


Constructor & Destructor Documentation

Fl_Round_Button::Fl_Round_Button ( int  X,
int  Y,
int  W,
int  H,
const char *  L = 0 
)

Creates a new Fl_Round_Button widget using the given position, size, and label string.

Fl_Round_Button.png

The Fl_Round_Button subclass displays the "ON" state by turning on a light, rather than drawing pushed in.

The default box type is FL_NO_BOX, which draws the label w/o a box right of the checkmark.

The shape of the "light" is set with down_box() and its default value is FL_ROUND_DOWN_BOX.

The color of the light when on is controlled with selection_color(), which defaults to FL_FOREGROUND_COLOR (usually black).

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: