]> Dogcows Code - chaz/openbox/commitdiff
let you create a parentless label
authorDana Jansens <danakj@orodu.net>
Wed, 19 Feb 2003 00:55:25 +0000 (00:55 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 19 Feb 2003 00:55:25 +0000 (00:55 +0000)
otk/label.cc
otk/label.hh

index a267039df1164a078a5437a624755ac1472ba616..8ec03dd9b805b361408d57d306c1983e3864fd99 100644 (file)
 
 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(""),
index f43ed71ad87db3635cf2495d67ef97cad5d67a74..cd9ef5a1276dad1d87fa61e3ab0fb6a794df3d4b 100644 (file)
@@ -14,6 +14,7 @@ namespace otk {
 class Label : public Widget {
 
 public:
+  Label(int screen, EventDispatcher *ed, int bevel = 3);
   Label(Widget *parent);
   virtual ~Label();
 
This page took 0.024917 seconds and 4 git commands to generate.