diff options
Diffstat (limited to 'otk/focuslabel.hh')
| -rw-r--r-- | otk/focuslabel.hh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/otk/focuslabel.hh b/otk/focuslabel.hh new file mode 100644 index 00000000..ea21710a --- /dev/null +++ b/otk/focuslabel.hh @@ -0,0 +1,30 @@ +#ifndef __label_hh +#define __label_hh + +#include "focuswidget.hh" + +namespace otk { + +class OtkFocusLabel : public OtkFocusWidget { + +public: + + OtkFocusLabel(OtkWidget *parent); + ~OtkFocusLabel(); + + 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 |
