]> Dogcows Code - chaz/openbox/blob - otk/label.hh
state the license. killall the old readme data
[chaz/openbox] / otk / 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
8 namespace otk {
9
10 class Label : public Widget {
11
12 public:
13
14 Label(Widget *parent);
15 ~Label();
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
This page took 0.033168 seconds and 4 git commands to generate.