]> icculus.org git repositories - mikachu/openbox.git/blob - otk/label.hh
add a Label class that doesnt change with focus
[mikachu/openbox.git] / otk / label.hh
1 #ifndef __label_hh
2 #define __label_hh
3
4 #include "widget.hh"
5
6 namespace otk {
7
8 class OtkLabel : public OtkWidget {
9
10 public:
11
12   OtkLabel(OtkWidget *parent);
13   ~OtkLabel();
14
15   inline const std::string &getText(void) const { return _text; }
16   void setText(const std::string &text) { _text = text; _dirty = true; }
17
18   void update(void);
19   int exposeHandler(const XExposeEvent &e);
20   int configureHandler(const XConfigureEvent &e);
21
22 private:
23
24   std::string _text;
25   bool _dirty;
26 };
27
28 }
29
30 #endif