X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.h;h=9ec9f33c8c2a1fa41f3048ae669e7b06ce2383b4;hb=b4d0a86b77fb5146f5a4f6c76690c16204210f1a;hp=ce95151665e30bd7048fa1b2808d471941470132;hpb=91997dd3189b93a67179822ec2fed5f2a7bddb74;p=libs%2Fgltk.git diff --git a/source/indicator.h b/source/indicator.h index ce95151..9ec9f33 100644 --- a/source/indicator.h +++ b/source/indicator.h @@ -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 char *get_class() const override { return "indicator"; } + void set_active(bool); -private: - virtual const char *get_class() const { return "indicator"; } }; } // namespace GLtk