summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();