X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flabel.cpp;h=36637d0828e66995c8c8519b06c38e4cab48dbc6;hb=1fde94c15fc65e85f5931a9daf74dd8806e682e0;hp=d0aba354c9555a86485640e6ded619463d4d1b84;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/label.cpp b/source/label.cpp index d0aba35..36637d0 100644 --- a/source/label.cpp +++ b/source/label.cpp @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of libmspgltk +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include "label.h" #include "part.h" @@ -24,5 +31,17 @@ void Label::render_part(const Part &part) const Widget::render_part(part); } + +Label::Loader::Loader(Label &l): + Widget::Loader(l) +{ + add("text", &Label::text); +} + +Label &Label::Loader::get_object() +{ + return static_cast