fltk/FL/Fl_Scrollbar.H
Michael R Sweet f9039b2ae2 Initial revision
git-svn-id: file:///fltk/svn/fltk/trunk@2 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06 18:21:25 +00:00

31 lines
581 B
C++

// Fl_Scrollbar.H
#ifndef Fl_Scrollbar_H
#define Fl_Scrollbar_H
#include "Fl_Slider.H"
class Fl_Scrollbar : public Fl_Slider {
int linesize_;
int pushed_;
void draw();
int handle(int);
static void timeout_cb(void*);
void increment_cb();
public:
Fl_Scrollbar(int x,int y,int w,int h, const char *l = 0);
int value() {return int(Fl_Slider::value());}
int value(int position, int size, int top, int total) {
return scrollvalue(position, size, top, total);
}
int linesize() const {return linesize_;}
void linesize(int i) {linesize_ = i;}
};
#endif