X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=otk%2Flabel.hh;fp=otk%2Flabel.hh;h=3bf397a6e67733958d2e7878dac7ede55940a345;hb=3ce8b540aae127c773c57fcf7094e11319d3c6a3;hp=0000000000000000000000000000000000000000;hpb=bd06e8961d43dfbfac0472409e55513f1fd86bf8;p=chaz%2Fopenbox diff --git a/otk/label.hh b/otk/label.hh new file mode 100644 index 00000000..3bf397a6 --- /dev/null +++ b/otk/label.hh @@ -0,0 +1,30 @@ +#ifndef __label_hh +#define __label_hh + +#include "widget.hh" + +namespace otk { + +class OtkLabel : public OtkWidget { + +public: + + OtkLabel(OtkWidget *parent); + ~OtkLabel(); + + inline const std::string &getText(void) const { return _text; } + void setText(const std::string &text) { _text = text; _dirty = true; } + + void update(void); + int exposeHandler(const XExposeEvent &e); + int configureHandler(const XConfigureEvent &e); + +private: + + std::string _text; + bool _dirty; +}; + +} + +#endif