/* Copyright (C) 2010 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef __gtk2_waves_icon_button_h__ #define __gtk2_waves_icon_button_h__ #include "waves_button.h" class WavesIconButton : public WavesButton { public: WavesIconButton (); virtual ~WavesIconButton (); void set_normal_image (const Glib::RefPtr& img); void set_active_image (const Glib::RefPtr& img); void set_inactive_image (const Glib::RefPtr& img); void set_prelight_image (const Glib::RefPtr& img); protected: void render (cairo_t *); private: Glib::RefPtr _normal_pixbuf; Glib::RefPtr _active_pixbuf; Glib::RefPtr _inactive_pixbuf; Glib::RefPtr _prelight_pixbuf; }; #endif /* __gtk2_waves_icon_button_h__ */