]> icculus.org git repositories - dana/openbox.git/blob - otk/focuslabel.hh
xft2 works. and works good.
[dana/openbox.git] / otk / focuslabel.hh
1 #ifndef __label_hh
2 #define __label_hh
3
4 #include "focuswidget.hh"
5 #include "font.hh"
6
7 namespace otk {
8
9 class OtkFocusLabel : public OtkFocusWidget {
10
11 public:
12
13   OtkFocusLabel(OtkWidget *parent);
14   ~OtkFocusLabel();
15
16   inline const std::string &getText(void) const { return _text; }
17   void setText(const std::string &text) { _text = text; _dirty = true; }
18
19   void update(void);
20
21 private:
22   //! Object used by Xft to render to the drawable
23   XftDraw *_xftdraw;
24   //! Text displayed in the label
25   std::string _text;
26 };
27
28 }
29
30 #endif