]>
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 "otk/widget.hh"
7 #include "otk/style.hh"
12 class OBLabelWidget
: public otk::OtkWidget
, public OBWidget
16 const otk::BFont
*_font
;
17 otk::BColor
*_text_color
;
19 otk::Style::TextJustify _justify
;
21 //! Object used by Xft to render to the drawable
25 OBLabelWidget(otk::OtkWidget
*parent
, OBWidget::WidgetType type
);
26 virtual ~OBLabelWidget();
28 virtual void setStyle(otk::Style
*style
);
30 virtual void adjust();
33 virtual void unfocus();
35 virtual void update();
37 inline const std::string
&text() const { return _text
; }
38 void setText(const std::string
&text
);
43 #endif // __oblabelwidget_hh
This page took 0.033436 seconds and 4 git commands to generate.