Dillo
v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
fltkcomplexbutton.hh
Go to the documentation of this file.
1
2
// fltkcomplexbutton.hh is derived from FL/Fl_Button.H from FLTK's 1.3 branch
3
// at http://fltk.org in early 2011.
4
// FL/Fl_Button.H is Copyright 1998-2010 by Bill Spitzak and others.
5
6
/*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef __FLTK_COMPLEX_BUTTON_HH__
22
#define __FLTK_COMPLEX_BUTTON_HH__
23
24
#include <FL/Fl_Group.H>
25
26
namespace
dw
{
27
namespace
fltk {
28
namespace
ui {
29
30
class
ComplexButton
:
public
Fl_Group {
31
char
value_
;
32
char
oldval
;
33
uchar
down_box_
;
34
35
protected
:
36
virtual
void
draw
();
37
38
public
:
39
virtual
int
handle
(
int
);
40
41
ComplexButton
(
int
X,
int
Y,
int
W,
int
H
,
const
char
*L = 0);
42
~ComplexButton
();
43
44
int
value
(
int
v);
45
49
char
value
()
const
{
return
value_
;}
50
55
Fl_Boxtype
down_box
()
const
{
return
(Fl_Boxtype)
down_box_
;}
56
62
void
down_box
(Fl_Boxtype b) {
down_box_
= b;}
63
};
64
65
}
// namespace ui
66
}
// namespace fltk
67
}
// namespace dw
68
69
#endif
70
71
//
72
//
dw::fltk::ui::ComplexButton
Definition
fltkcomplexbutton.hh:30
dw::fltk::ui::ComplexButton::value
char value() const
Returns the current value of the button (0 or 1).
Definition
fltkcomplexbutton.hh:49
dw::fltk::ui::ComplexButton::handle
virtual int handle(int)
Definition
fltkcomplexbutton.cc:58
dw::fltk::ui::ComplexButton::~ComplexButton
~ComplexButton()
Definition
fltkcomplexbutton.cc:130
dw::fltk::ui::ComplexButton::draw
virtual void draw()
Definition
fltkcomplexbutton.cc:45
dw::fltk::ui::ComplexButton::value_
char value_
Definition
fltkcomplexbutton.hh:31
dw::fltk::ui::ComplexButton::down_box
void down_box(Fl_Boxtype b)
Sets the down box type.
Definition
fltkcomplexbutton.hh:62
dw::fltk::ui::ComplexButton::value
int value(int v)
Sets the current value of the button.
Definition
fltkcomplexbutton.cc:32
dw::fltk::ui::ComplexButton::oldval
char oldval
Definition
fltkcomplexbutton.hh:32
dw::fltk::ui::ComplexButton::down_box
Fl_Boxtype down_box() const
Returns the current down box type, which is drawn when value() is non-zero.
Definition
fltkcomplexbutton.hh:55
dw::fltk::ui::ComplexButton::down_box_
uchar down_box_
Definition
fltkcomplexbutton.hh:33
H
#define H(x, y, z)
dw
Dw is in this namespace, or sub namespaces of this one.
Definition
alignedtablecell.cc:28
dw
fltkcomplexbutton.hh
Generated on Sun Nov 17 2024 01:31:43 for Dillo by
1.9.8