-OtkLabel::OtkLabel(OtkWidget *parent)
- : OtkWidget(parent), _text("")
+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(""),
+ _font(0),
+ _justify_horz(RenderStyle::LeftTopJustify),
+ _justify_vert(RenderStyle::LeftTopJustify),
+ _highlight(false)
+{
+ styleChanged(*RenderStyle::style(screen()));
+}
+
+Label::~Label()
+{
+}
+
+void Label::setHorizontalJustify(RenderStyle::Justify j)
+{
+ _justify_horz = j;
+ refresh();
+}
+
+void Label::setVerticalJustify(RenderStyle::Justify j)
+{
+ _justify_vert = j;
+ refresh();
+}
+
+void Label::setHighlighted(bool h)