]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.h
Rework how widget ownership works in Container
[libs/gltk.git] / source / indicator.h
index dd8a26e52ac06fa459370bf75331726fa1936316..9ec9f33c8c2a1fa41f3048ae669e7b06ce2383b4 100644 (file)
@@ -1,13 +1,7 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GLTK_INDICATOR_H_
 #define MSP_GLTK_INDICATOR_H_
 
+#include "mspgltk_api.h"
 #include "widget.h"
 
 namespace Msp {
@@ -16,13 +10,12 @@ namespace GLtk {
 /**
 An Indicator visualizes a boolean state.  It can be either active or inactive.
 */
-class Indicator: public Widget
+class MSPGLTK_API Indicator: public Widget
 {
 public:
-       Indicator(const Resources &);
+       const char *get_class() const override { return "indicator"; }
+
        void set_active(bool);
-private:
-       const char *get_class() const { return "indicator"; }
 };
 
 } // namespace GLtk