]> Dogcows Code - chaz/openbox/blob - otk/label.hh
better xft checks. require xft version 2
[chaz/openbox] / otk / label.hh
1 #ifndef __label_hh
2 #define __label_hh
3
4 #include "widget.hh"
5 #include "font.hh"
6
7 namespace otk {
8
9 class OtkLabel : public OtkWidget {
10
11 public:
12
13 OtkLabel(OtkWidget *parent);
14 ~OtkLabel();
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 virtual void setStyle(Style *style);
22
23 private:
24 //! Object used by Xft to render to the drawable
25 XftDraw *_xftdraw;
26 //! Text displayed in the label
27 std::string _text;
28 };
29
30 }
31
32 #endif
This page took 0.0325 seconds and 4 git commands to generate.