]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.h
Add API declarations
[libs/gltk.git] / source / indicator.h
index c8ecbc53ecae34dad48458a3441b87fd94ddf294..2b5b2a397f22cf79c11ec1e567fbaad6e9cf0d3a 100644 (file)
@@ -1,18 +1,21 @@
 #ifndef MSP_GLTK_INDICATOR_H_
 #define MSP_GLTK_INDICATOR_H_
 
+#include "mspgltk_api.h"
 #include "widget.h"
 
 namespace Msp {
 namespace GLtk {
 
-class Indicator: public Widget
+/**
+An Indicator visualizes a boolean state.  It can be either active or inactive.
+*/
+class MSPGLTK_API Indicator: public Widget
 {
 public:
-       Indicator(const Resources &);
+       virtual const char *get_class() const { return "indicator"; }
+
        void set_active(bool);
-private:
-       const char *get_class() const { return "indicator"; }
 };
 
 } // namespace GLtk