1 #include <cairomm/cairomm.h>
2 #include <gdkmm/general.h>
4 #include "canvas/pixbuf.h"
7 using namespace ArdourCanvas;
9 Pixbuf::Pixbuf (Group* g)
16 Pixbuf::render (Rect const & /*area*/, Cairo::RefPtr<Cairo::Context> context) const
18 Gdk::Cairo::set_source_pixbuf (context, _pixbuf, 0, 0);
23 Pixbuf::compute_bounding_box () const
26 _bounding_box = boost::optional<Rect> (Rect (0, 0, _pixbuf->get_width(), _pixbuf->get_height()));
28 _bounding_box = boost::optional<Rect> ();
31 _bounding_box_dirty = false;
35 Pixbuf::set (Glib::RefPtr<Gdk::Pixbuf> pixbuf)
40 _bounding_box_dirty = true;
45 Glib::RefPtr<Gdk::Pixbuf>