X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbutton.h;h=687f5dd74e3cee22bd2310b0a02dc718feeda0b5;hb=a87d05583cb7dffaf0e0f5eb9f9b2fc0bcf656e1;hp=d13a4c094c22deade08f6fcbe9e0fcf4b656857a;hpb=aab3c89d03c1a99cb91ff1870775b2c44806bb79;p=libs%2Fgltk.git diff --git a/source/button.h b/source/button.h index d13a4c0..687f5dd 100644 --- a/source/button.h +++ b/source/button.h @@ -10,6 +10,7 @@ Distributed under the LGPL #include #include +#include "text.h" #include "widget.h" namespace Msp { @@ -26,11 +27,12 @@ public: { public: Loader(Button &); - Button &get_object() const; + private: + void text(const std::string &); }; private: - std::string text; + Text text; const GL::Texture2D *icon; bool pressed; @@ -46,6 +48,8 @@ public: private: virtual const char *get_class() const { return "button"; } virtual void render_special(const Part &) const; + + virtual void on_style_change(); }; } // namespace GLtk