]> icculus.org git repositories - mikachu/openbox.git/blob - otk/focuslabel.hh
otk using ustring for shit that draws. expended its inferface yet some more.
[mikachu/openbox.git] / otk / focuslabel.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __label_hh
3 #define __label_hh
4
5 #include "focuswidget.hh"
6 #include "font.hh"
7
8 namespace otk {
9
10 class FocusLabel : public FocusWidget {
11
12 public:
13
14   FocusLabel(Widget *parent);
15   ~FocusLabel();
16
17   inline const ustring &getText(void) const { return _text; }
18   void setText(const ustring &text) { _text = text; _dirty = true; }
19
20   void update(void);
21
22   virtual void setStyle(Style *style);
23   
24 private:
25   //! Object used by Xft to render to the drawable
26   XftDraw *_xftdraw;
27   //! Text displayed in the label
28   ustring _text;
29 };
30
31 }
32
33 #endif