let you create a parentless label
This commit is contained in:
parent
b3a87e3a6f
commit
0a93178b75
2 changed files with 12 additions and 0 deletions
11
otk/label.cc
11
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(""),
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace otk {
|
|||
class Label : public Widget {
|
||||
|
||||
public:
|
||||
Label(int screen, EventDispatcher *ed, int bevel = 3);
|
||||
Label(Widget *parent);
|
||||
virtual ~Label();
|
||||
|
||||
|
|
Loading…
Reference in a new issue