1 #ifndef __CANVAS_PIXBUF__
2 #define __CANVAS_PIXBUF__
4 #include <glibmm/refptr.h>
6 #include "canvas/item.h"
12 namespace ArdourCanvas {
14 class Pixbuf : public Item
19 void render (Rect const &, Cairo::RefPtr<Cairo::Context>) const;
20 void compute_bounding_box () const;
21 XMLNode* get_state () const;
22 void set_state (XMLNode const *);
24 void set (Glib::RefPtr<Gdk::Pixbuf>);
26 /* returns the reference to the internal private pixbuf
27 * after changing data in the pixbuf a call to set()
28 * is mandatory to update the data on screen */
29 Glib::RefPtr<Gdk::Pixbuf> pixbuf();
32 Glib::RefPtr<Gdk::Pixbuf> _pixbuf;