]>
Dogcows Code - chaz/openbox/blob - src/labelwidget.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __oblabelwidget_hh
3 #define __oblabelwidget_hh
5 #include "widgetbase.hh"
6 #include "otk/widget.hh"
8 #include "otk/renderstyle.hh"
9 #include "otk/ustring.hh"
13 class LabelWidget
: public otk::Widget
, public WidgetBase
17 const otk::Font
*_font
;
18 otk::RenderColor
*_text_color
;
20 otk::RenderStyle::TextJustify _justify
;
24 LabelWidget(otk::Widget
*parent
, WidgetBase::WidgetType type
);
25 virtual ~LabelWidget();
27 virtual void setStyle(otk::RenderStyle
*style
);
29 virtual void adjust();
32 virtual void unfocus();
34 virtual void renderForeground();
36 inline const otk::ustring
&text() const { return _text
; }
37 void setText(const otk::ustring
&text
);
42 #endif // __oblabelwidget_hh
This page took 0.033008 seconds and 4 git commands to generate.