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