]> Dogcows Code - chaz/openbox/blob - otk/focuslabel.hh
use bevel width on the top/bottom too
[chaz/openbox] / otk / focuslabel.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __focuslabel_hh
3 #define __focuslabel_hh
4
5 #include "focuswidget.hh"
6
7 namespace otk {
8
9 class FocusLabel : public FocusWidget {
10
11 public:
12
13 FocusLabel(Widget *parent);
14 ~FocusLabel();
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();
20
21 virtual void update();
22
23 void fitString(const std::string &str);
24 void fitSize(int w, int h);
25
26 virtual void setStyle(RenderStyle *style);
27
28 private:
29 //! Text displayed in the label
30 ustring _text;
31 };
32
33 }
34
35 #endif // __focuslabel_hh
This page took 0.035446 seconds and 4 git commands to generate.