From: Dana Jansens Date: Wed, 19 Feb 2003 00:55:25 +0000 (+0000) Subject: let you create a parentless label X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=0a93178b75a53d7d5823a17e6d985ad2acb3ad89;p=chaz%2Fopenbox let you create a parentless label --- diff --git a/otk/label.cc b/otk/label.cc index a267039d..8ec03dd9 100644 --- a/otk/label.cc +++ b/otk/label.cc @@ -10,6 +10,17 @@ 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(""), diff --git a/otk/label.hh b/otk/label.hh index f43ed71a..cd9ef5a1 100644 --- a/otk/label.hh +++ b/otk/label.hh @@ -14,6 +14,7 @@ namespace otk { class Label : public Widget { public: + Label(int screen, EventDispatcher *ed, int bevel = 3); Label(Widget *parent); virtual ~Label();