]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/button.h
Store the Resources reference only in Root widget
[libs/gltk.git] / source / button.h
index 31d87e1f0ba806f5dfc100c1c6bde41b20cb3a6c..b84511e310707655e70bc1c76392394e86f3634c 100644 (file)
@@ -39,7 +39,8 @@ private:
 public:
        sigc::signal<void> signal_clicked;
 
-       Button(const Resources &, const std::string & =std::string());
+       Button(const std::string & = std::string());
+
        void set_text(const std::string &);
        void set_icon(const GL::Texture2D *);
        virtual void button_press(int, int, unsigned);
@@ -48,6 +49,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