]> git.tdb.fi Git - libs/gltk.git/blob - source/indicator.h
cf20e3138f29618ff0a98eca5d7637324de70d16
[libs/gltk.git] / source / indicator.h
1 #ifndef MSP_GLTK_INDICATOR_H_
2 #define MSP_GLTK_INDICATOR_H_
3
4 #include "widget.h"
5
6 namespace Msp {
7 namespace GLtk {
8
9 /**
10 An Indicator visualizes a boolean state.  It can be either active or inactive.
11 */
12 class Indicator: public Widget
13 {
14 public:
15         Indicator();
16
17         virtual const char *get_class() const { return "indicator"; }
18
19         void set_active(bool);
20 };
21
22 } // namespace GLtk
23 } // namespace Msp
24
25 #endif