diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-16 13:02:29 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-16 13:02:29 +0000 |
| commit | bd06e8961d43dfbfac0472409e55513f1fd86bf8 (patch) | |
| tree | 00e45868fe2aadc22d84fcc592e92c56c061da52 /otk/focuslabel.hh | |
| parent | 6b977b2ded0b8807dd05bb7ee0c318612600027d (diff) | |
actually add this shit. yay
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 |
