]> Dogcows Code - chaz/openbox/blob - otk/label.hh
echo a message about where to find the generated docs
[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
7 namespace otk {
8
9 class Label : public Widget {
10
11 public:
12
13 Label(Widget *parent);
14 ~Label();
15
16 inline const ustring &getText(void) const { return _text; }
17 void setText(const ustring &text) { _text = text; _dirty = true; }
18
19 virtual void renderForeground(void);
20
21 virtual void setStyle(RenderStyle *style);
22
23 private:
24 //! Text to be displayed in the label
25 ustring _text;
26 //! The actual text being shown, may be a subset of _text
27 ustring _drawtext;
28 //! The drawing offset for the text
29 int _drawx;
30 };
31
32 }
33
34 #endif
This page took 0.032474 seconds and 4 git commands to generate.