diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-19 00:55:25 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-19 00:55:25 +0000 |
| commit | 0a93178b75a53d7d5823a17e6d985ad2acb3ad89 (patch) | |
| tree | 029a942e5f32acbaa3d4af8f1d86a75ecc6648f2 /otk | |
| parent | b3a87e3a6f0001949af5e1547c4ef6af470a83ff (diff) | |
let you create a parentless label
Diffstat (limited to 'otk')
| -rw-r--r-- | otk/label.cc | 11 | ||||
| -rw-r--r-- | otk/label.hh | 1 |
2 files changed, 12 insertions, 0 deletions
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(); |
