X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.h;h=90c920c574100ea190166180ea7a3858dfa0888e;hb=4b52d16bc895f9d969383d7a7d6a3558c1972cc5;hp=c8ecbc53ecae34dad48458a3441b87fd94ddf294;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/indicator.h b/source/indicator.h index c8ecbc5..90c920c 100644 --- a/source/indicator.h +++ b/source/indicator.h @@ -6,13 +6,15 @@ namespace Msp { namespace GLtk { +/** +An Indicator visualizes a boolean state. It can be either active or inactive. +*/ class 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