all repos — openbox @ 0a93178b75a53d7d5823a17e6d985ad2acb3ad89

openbox fork - make it a bit more like ryudo

let you create a parentless label
Dana Jansens danakj@orodu.net
commit

0a93178b75a53d7d5823a17e6d985ad2acb3ad89

parent

b3a87e3a6f0001949af5e1547c4ef6af470a83ff

2 files changed, 12 insertions(+), 0 deletions(-)

jump to
M otk/label.ccotk/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.hhotk/label.hh

@@ -14,6 +14,7 @@

class Label : public Widget { public: + Label(int screen, EventDispatcher *ed, int bevel = 3); Label(Widget *parent); virtual ~Label();