summaryrefslogtreecommitdiff
path: root/documentation/Fl_Light_Button.html
blob: d60af5c97a55b0d12c447b9b3ad7d62553f95750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<html>
<body>

<hr break>

<h2><a name="Fl_Light_Button">class Fl_Light_Button</a></h2>

<hr>

<h3>Class Hierarchy</h3>

<ul><pre>
<a href="#Fl_Button">Fl_Button</a>
   |
   +----<b>Fl_Light_Button</b>
</pre></ul>

<h3>Include Files</h3>

<ul><pre>
#include &lt;FL/Fl_Light_Button.H>
</pre></ul>

<h3>Description</h3>

Buttons generate callbacks when they are clicked by the user.  You
control exactly when and how by changing the values for <tt>type()</tt> and
<tt>when()</tt>.

<P>The <tt>Fl_Light_Button</tt> 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_DOWN_BOX.  The color of the
light when on is controlled with <tt>selection_color()<tt>, which defaults to
FL_YELLOW.

<h3>Methods</h3>

<ul>
	<li><a href="#Fl_Light_Button.Fl_Light_Button">Fl_Light_Button</a>
	<li><a href="#Fl_Light_Button.~Fl_Light_Button">~Fl_Light_Button</a>
</ul>

<h4><a name="Fl_Light_Button.Fl_Light_Button">Fl_Light_Button::Fl_Light_Button(int x, int y, int w, int h, const char *label = 0)</a></h4>

Creates a new <tt>Fl_Light_Button</tt> widget using the given position,
size, and label string.

<h4><a name="Fl_Light_Button.~Fl_Light_Button">Fl_Light_Button::~Fl_Light_Button()</a></h4>

The destructor deletes the check button.

</body>
</html>