diff options
author | Carl Hetherington <carl@carlh.net> | 2009-06-20 13:44:47 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-06-20 13:44:47 +0000 |
commit | 596463e0eb0acad0eb29d93dc848ac9eee8eeed4 (patch) | |
tree | 3826002120c8083cde9562305d608e1285182a9b /gtk2_ardour/cairo_widget.h | |
parent | b895b677bf29cca95fe0626616d7495113386b04 (diff) |
Files missing from last commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@5221 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/cairo_widget.h')
-rw-r--r-- | gtk2_ardour/cairo_widget.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gtk2_ardour/cairo_widget.h b/gtk2_ardour/cairo_widget.h new file mode 100644 index 0000000000..99f0d5d8c3 --- /dev/null +++ b/gtk2_ardour/cairo_widget.h @@ -0,0 +1,27 @@ +#ifndef __gtk2_ardour_cairo_widget_h__ +#define __gtk2_ardour_cairo_widget_h__ + +#include <gtkmm/eventbox.h> + +class CairoWidget : public Gtk::EventBox +{ +public: + CairoWidget (); + virtual ~CairoWidget (); + + void set_dirty (); + +protected: + virtual void render (cairo_t *) = 0; + virtual bool on_expose_event (GdkEventExpose *); + void on_size_allocate (Gtk::Allocation &); + + int _width; ///< pixmap width + int _height; ///< pixmap height + +private: + bool _dirty; + GdkPixmap* _pixmap; +}; + +#endif |