X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Flabel.cc;h=8ec03dd9b805b361408d57d306c1983e3864fd99;hb=3147507622de5ab771c99a4bb636f55344f6cbd7;hp=587e321250300a287153bcbd7fcc080b5814e8a1;hpb=a4c8a839a3decc54e515fd110710195eca23fd2b;p=chaz%2Fopenbox diff --git a/otk/label.cc b/otk/label.cc index 587e3212..8ec03dd9 100644 --- a/otk/label.cc +++ b/otk/label.cc @@ -10,9 +10,21 @@ 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(""), + _font(0), _justify_horz(RenderStyle::LeftTopJustify), _justify_vert(RenderStyle::LeftTopJustify), _highlight(false)