]> git.tdb.fi Git - libs/gltk.git/blob - source/progressbar.h
c1e17b56890a613d967e21550e0780a7082a2049
[libs/gltk.git] / source / progressbar.h
1 #ifndef MSP_GLTK_PROGRESSBAR_H_
2 #define MSP_GLTK_PROGRESSBAR_H_
3
4 #include "widget.h"
5
6 namespace Msp {
7 namespace GLtk {
8
9 class ProgressBar: public Widget
10 {
11 private:
12         float range;
13         float fraction;
14
15 public:
16         ProgressBar();
17
18         virtual const char *get_class() const { return "progressbar"; }
19
20         void set_range(float);
21         void set_value(float);
22
23 private:
24         virtual void autosize_special(const Part &, Geometry &) const;
25         virtual void rebuild_special(const Part &);
26 };
27
28 } // namespace GLtk
29 } // namespace Msp
30
31 #endif