"Fossies" - the Fresh Open Source Software Archive

Member "fltk-1.3.3/documentation/html/Fl__Value__Slider_8H_source.html" (3 Nov 2014, 16380 Bytes) of package /linux/misc/fltk-1.3.3-docs-html.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted raw source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

FLTK 1.3.3
Fl_Value_Slider.H
1 //
2 // "$Id: Fl_Value_Slider.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
3 //
4 // Value slider 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_Slider widget . */
21 
22 #ifndef Fl_Value_Slider_H
23 #define Fl_Value_Slider_H
24 
25 #include "Fl_Slider.H"
26 
33 class FL_EXPORT Fl_Value_Slider : public Fl_Slider {
34  Fl_Font textfont_;
35  Fl_Fontsize textsize_;
36  Fl_Color textcolor_;
37 protected:
38  void draw();
39 public:
40  int handle(int);
41  Fl_Value_Slider(int x,int y,int w,int h, const char *l = 0);
43  Fl_Font textfont() const {return textfont_;}
45  void textfont(Fl_Font s) {textfont_ = s;}
47  Fl_Fontsize textsize() const {return textsize_;}
49  void textsize(Fl_Fontsize s) {textsize_ = s;}
51  Fl_Color textcolor() const {return textcolor_;}
53  void textcolor(Fl_Color s) {textcolor_ = s;}
54 };
55 
56 #endif
57 
58 //
59 // End of "$Id: Fl_Value_Slider.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
60 //
void textfont(Fl_Font s)
Sets the typeface of the text in the value box.
Definition: Fl_Value_Slider.H:45
The Fl_Value_Slider widget is a Fl_Slider widget with a box displaying the current value...
Definition: Fl_Value_Slider.H:33
Fl_Color textcolor() const
Gets the color of the text in the value box.
Definition: Fl_Value_Slider.H:51
void textcolor(Fl_Color s)
Sets the color of the text in the value box.
Definition: Fl_Value_Slider.H:53
Fl_Font textfont() const
Gets the typeface of the text in the value box.
Definition: Fl_Value_Slider.H:43
The Fl_Slider widget contains a sliding knob inside a box.
Definition: Fl_Slider.H:61
Fl_Fontsize textsize() const
Gets the size of the text in the value box.
Definition: Fl_Value_Slider.H:47
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:768
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition: Enumerations.H:796
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:739
void textsize(Fl_Fontsize s)
Sets the size of the text in the value box.
Definition: Fl_Value_Slider.H:49
void draw()
Draws the widget.
Definition: Fl_Slider.cxx:213