]> git.tdb.fi Git - libs/gltk.git/blob - source/indicator.h
Reorder class members
[libs/gltk.git] / source / indicator.h
1 /* $Id$
2
3 This file is part of libmspgltk
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GLTK_INDICATOR_H_
9 #define MSP_GLTK_INDICATOR_H_
10
11 #include "widget.h"
12
13 namespace Msp {
14 namespace GLtk {
15
16 /**
17 An Indicator visualizes a boolean state.  It can be either active or inactive.
18 */
19 class Indicator: public Widget
20 {
21 public:
22         Indicator(const Resources &);
23         void set_active(bool);
24 private:
25         const char *get_class() const { return "indicator"; }
26 };
27
28 } // namespace GLtk
29 } // namespace Msp
30
31 #endif