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