ardour/gtk2_ardour/waves_icon_button.h
Valeriy Kamyshniy fd1d7777fd Arranging tool pannel
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 460869]
2014-05-15 08:25:23 -05:00

45 lines
1.5 KiB
C++

/*
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<Gdk::Pixbuf>& img);
void set_active_image (const Glib::RefPtr<Gdk::Pixbuf>& img);
void set_inactive_image (const Glib::RefPtr<Gdk::Pixbuf>& img);
void set_prelight_image (const Glib::RefPtr<Gdk::Pixbuf>& img);
protected:
void render (cairo_t *);
private:
Glib::RefPtr<Gdk::Pixbuf> _normal_pixbuf;
Glib::RefPtr<Gdk::Pixbuf> _active_pixbuf;
Glib::RefPtr<Gdk::Pixbuf> _inactive_pixbuf;
Glib::RefPtr<Gdk::Pixbuf> _prelight_pixbuf;
};
#endif /* __gtk2_waves_icon_button_h__ */