let you create a parentless label
Dana Jansens danakj@orodu.net
2 files changed,
12 insertions(+),
0 deletions(-)
M
otk/label.cc
→
otk/label.cc
@@ -10,6 +10,17 @@ #include <string>
namespace otk { +Label::Label(int screen, EventDispatcher *ed, int bevel) + : Widget(screen, ed, Widget::Horizontal, bevel, true), + _text(""), + _font(0), + _justify_horz(RenderStyle::LeftTopJustify), + _justify_vert(RenderStyle::LeftTopJustify), + _highlight(false) +{ + styleChanged(*RenderStyle::style(screen)); +} + Label::Label(Widget *parent) : Widget(parent), _text(""),
M
otk/label.hh
→
otk/label.hh
@@ -14,6 +14,7 @@
class Label : public Widget { public: + Label(int screen, EventDispatcher *ed, int bevel = 3); Label(Widget *parent); virtual ~Label();