]> Dogcows Code - chaz/openbox/blob - label.hh
94ebe0b3bcad15b49bf432079cb6062f0d0f9d10
[chaz/openbox] / label.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __label_hh
3 #define __label_hh
4
5 #include "widget.hh"
6 #include "font.hh"
7 #include "userstring.hh"
8
9 namespace otk {
10
11 class Label : public Widget {
12
13 public:
14
15 Label(Widget *parent);
16 ~Label();
17
18 inline const userstring &getText(void) const { return _text; }
19 void setText(const userstring &text) { _text = text; _dirty = true; }
20
21 void update(void);
22
23 virtual void setStyle(Style *style);
24
25 private:
26 //! Object used by Xft to render to the drawable
27 XftDraw *_xftdraw;
28 //! Text displayed in the label
29 userstring _text;
30 };
31
32 }
33
34 #endif
This page took 0.036376 seconds and 3 git commands to generate.