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