summaryrefslogtreecommitdiff
path: root/otk
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-19 00:55:25 +0000
committerDana Jansens <danakj@orodu.net>2003-02-19 00:55:25 +0000
commit0a93178b75a53d7d5823a17e6d985ad2acb3ad89 (patch)
tree029a942e5f32acbaa3d4af8f1d86a75ecc6648f2 /otk
parentb3a87e3a6f0001949af5e1547c4ef6af470a83ff (diff)
let you create a parentless label
Diffstat (limited to 'otk')
-rw-r--r--otk/label.cc11
-rw-r--r--otk/label.hh1
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();