X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbutton.h;h=b84511e310707655e70bc1c76392394e86f3634c;hb=91997dd3189b93a67179822ec2fed5f2a7bddb74;hp=31d87e1f0ba806f5dfc100c1c6bde41b20cb3a6c;hpb=1e06dc208a02e68cf1bb127927e3ad5af3657c58;p=libs%2Fgltk.git diff --git a/source/button.h b/source/button.h index 31d87e1..b84511e 100644 --- a/source/button.h +++ b/source/button.h @@ -39,7 +39,8 @@ private: public: sigc::signal 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