FLTK 1.3.2

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

Fl_Value_Output.H
1 //
2 // "$Id: Fl_Value_Output.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
3 //
4 // Value output header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2010 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18
19 /* \file
20 Fl_Value_Output widget . */
21
22 #ifndef Fl_Value_Output_H
23 #define Fl_Value_Output_H
24
25 #ifndef Fl_Valuator_H
26 #include "Fl_Valuator.H"
27 #endif
28
41 class FL_EXPORT Fl_Value_Output : public Fl_Valuator {
42 Fl_Font textfont_;
43 Fl_Fontsize textsize_;
44 uchar soft_;
45 Fl_Color textcolor_;
46
47 protected:
48 void draw();
49
50 public:
51 int handle(int);
52 Fl_Value_Output(int x,int y,int w,int h,const char *l=0);
53
60 void soft(uchar s) {soft_ = s;}
67 uchar soft() const {return soft_;}
68
70 Fl_Font textfont() const {return textfont_;}
72 void textfont(Fl_Font s) {textfont_ = s;}
74 Fl_Fontsize textsize() const {return textsize_;}
75 void textsize(Fl_Fontsize s) {textsize_ = s;}
77 Fl_Color textcolor() const {return textcolor_;}
79 void textcolor(Fl_Color s) {textcolor_ = s;}
80 };
81
82 #endif
83
84 //
85 // End of "$Id: Fl_Value_Output.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
86 //
Fl_Valuator
The Fl_Valuator class controls a single floating-point value and provides a consistent interface to s...
Definition: Fl_Valuator.H:46
Fl_Value_Output
The Fl_Value_Output widget displays a floating point value.
Definition: Fl_Value_Output.H:41
Fl_Widget::handle
virtual int handle(int event)
Handles the specified event.
Definition: Fl_Widget.cxx:97
Fl_Widget::draw
virtual void draw()=0
Draws the widget.
Fl_Value_Output::textsize
Fl_Fontsize textsize() const
Gets the size of the text in the value box.
Definition: Fl_Value_Output.H:74
Fl_Value_Output::textcolor
Fl_Color textcolor() const
Sets the color of the text in the value box.
Definition: Fl_Value_Output.H:77
Fl_Value_Output::soft
void soft(uchar s)
If &quot;soft&quot; is turned on, the user is allowed to drag the value outside the range.
Definition: Fl_Value_Output.H:60
Fl_Value_Output::textfont
Fl_Font textfont() const
Gets the typeface of the text in the value box.
Definition: Fl_Value_Output.H:70
Fl_Value_Output::soft
uchar soft() const
If &quot;soft&quot; is turned on, the user is allowed to drag the value outside the range.
Definition: Fl_Value_Output.H:67
Fl_Value_Output::textfont
void textfont(Fl_Font s)
Sets the typeface of the text in the value box.
Definition: Fl_Value_Output.H:72
Fl_Fontsize
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:746
Fl_Color
unsigned int Fl_Color
an FLTK color value
Definition: Enumerations.H:774
Fl_Font
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:717
uchar
unsigned char uchar
unsigned char
Definition: fl_types.h:30
Fl_Value_Output::textcolor
void textcolor(Fl_Color s)
Gets the color of the text in the value box.
Definition: Fl_Value_Output.H:79
- © 1998-2012 by Bill Spitzak and others.