]> icculus.org git repositories - mikachu/openbox.git/blob - otk/focuslabel.hh
provide RenderControls to all otk from the display class. initialize them all there...
[mikachu/openbox.git] / 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
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   void update(void);
20
21   virtual void setStyle(Style *style);
22   
23 private:
24   //! Text displayed in the label
25   ustring _text;
26 };
27
28 }
29
30 #endif