]> Dogcows Code - chaz/openbox/blob - otk/focuslabel.hh
b3db60747063f3c4712d2d8d668d1d90480a6d0e
[chaz/openbox] / 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 #include "userstring.hh"
8
9 namespace otk {
10
11 class FocusLabel : public FocusWidget {
12
13 public:
14
15 FocusLabel(Widget *parent);
16 ~FocusLabel();
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.032916 seconds and 4 git commands to generate.