FLTK 1.3.5
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
Fl_Scrollbar.H
1
//
2
// "$Id$"
3
//
4
// Scroll bar 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_Scrollbar widget . */
21
22
#ifndef Fl_Scrollbar_H
23
#define Fl_Scrollbar_H
24
25
#include "Fl_Slider.H"
26
43
class
FL_EXPORT
Fl_Scrollbar
:
public
Fl_Slider
{
44
45
int
linesize_;
46
int
pushed_;
47
static
void
timeout_cb(
void
*);
48
void
increment_cb();
49
protected
:
50
void
draw
();
51
52
public
:
53
54
Fl_Scrollbar
(
int
X,
int
Y,
int
W,
int
H,
const
char
*L = 0);
55
~
Fl_Scrollbar
();
56
int
handle(
int
);
57
65
int
value
()
const
{
return
int(
Fl_Slider::value
());}
66
73
int
value
(
int
p) {
return
int(
Fl_Slider::value
((
double
)p));}
74
89
int
value
(
int
pos,
int
windowSize,
int
first,
int
total) {
90
return
scrollvalue
(pos, windowSize, first, total);
91
}
92
96
int
linesize
()
const
{
return
linesize_;}
97
103
void
linesize
(
int
i) {linesize_ = i;}
104
105
};
106
107
#endif
108
109
//
110
// End of "$Id$".
111
//
© 1998-2016 by Bill Spitzak and others.