6 CItem::CItem(const char *filename):Gtk::DrawingArea()
8 std::cout << "CItem::CItem() -> Usando " << filename << std::endl;
9 image = Gdk::Pixbuf::create_from_file(filename);
11 std::cout << "CItem::CItem() -> w = " << image->get_width() << " h = " << image->get_height() << std::endl;
12 set_size_request(image->get_width(), image->get_height());
19 bool CItem::on_expose_event(GdkEventExpose* event)
21 image->render_to_drawable(get_window(), get_style()->get_black_gc(), \
22 0, 0, 0, 0, image->get_width(), image->get_height(), Gdk::RGB_DITHER_NONE, 0, 0);
24 Gtk::DrawingArea::on_expose_event(event);