Merge branch 'master' into cairocanvas
[ardour.git] / libs / canvas / canvas / pixbuf.h
1 #include <glibmm/refptr.h>
2
3 #include "canvas/item.h"
4
5 namespace Gdk {
6         class Pixbuf;
7 }
8
9 namespace ArdourCanvas {
10
11 class Pixbuf : public Item
12 {
13 public:
14         Pixbuf (Group *);
15
16         void render (Rect const &, Cairo::RefPtr<Cairo::Context>) const;
17         void compute_bounding_box () const;
18         XMLNode* get_state () const;
19         void set_state (XMLNode const *);
20
21         void set (Glib::RefPtr<Gdk::Pixbuf>);
22
23 private:
24         Glib::RefPtr<Gdk::Pixbuf> _pixbuf;
25 };
26
27 }