let you create a parentless label

This commit is contained in:
Dana Jansens 2003-02-19 00:55:25 +00:00
parent b3a87e3a6f
commit 0a93178b75
2 changed files with 12 additions and 0 deletions

View file

@ -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(""),

View file

@ -14,6 +14,7 @@ namespace otk {
class Label : public Widget {
public:
Label(int screen, EventDispatcher *ed, int bevel = 3);
Label(Widget *parent);
virtual ~Label();