summaryrefslogtreecommitdiff
path: root/otk/label.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-16 13:08:10 +0000
committerDana Jansens <danakj@orodu.net>2002-11-16 13:08:10 +0000
commit3ce8b540aae127c773c57fcf7094e11319d3c6a3 (patch)
tree7687a588069fd7edfb632ecb8fecb141a4beed8b /otk/label.hh
parentbd06e8961d43dfbfac0472409e55513f1fd86bf8 (diff)
add a Label class that doesnt change with focus
Diffstat (limited to 'otk/label.hh')
-rw-r--r--otk/label.hh30
1 files changed, 30 insertions, 0 deletions
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