13
0
livetrax/gtk2_ardour/cairo_widget.h
Carl Hetherington 596463e0eb Files missing from last commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@5221 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-06-20 13:44:47 +00:00

28 lines
489 B
C++

#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