3 This file is part of libmspgltk
4 Copyright © 2007, 2009-2011 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_LABEL_H_
9 #define MSP_GLTK_LABEL_H_
18 Labels display static text. There is one special part: "text".
20 class Label: public Widget
23 class Loader: public Widget::Loader
28 void text(const std::string &);
35 Label(const std::string & = std::string());
37 virtual const char *get_class() const { return "label"; }
39 virtual void autosize();
40 void set_text(const std::string &);
43 virtual void render_special(const Part &) const;
45 virtual void on_style_change();