]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/button.h
Update text information when widget style changes
[libs/gltk.git] / source / button.h
index d13a4c094c22deade08f6fcbe9e0fcf4b656857a..687f5dd74e3cee22bd2310b0a02dc718feeda0b5 100644 (file)
@@ -10,6 +10,7 @@ Distributed under the LGPL
 
 #include <sigc++/sigc++.h>
 #include <msp/gl/texture2d.h>
+#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