#ifndef GTKMM_EXAMPLE_DRAWINGAREALINES_H #define GTKMM_EXAMPLE_DRAWINGAREALINES_H #include <gtkmm/drawingarea.h> #include <gdkmm.h> //Custom drawing area with modified expose_event. class CItem:public Gtk::DrawingArea { public: CItem(const char *filename); ~CItem(); virtual bool on_expose_event(GdkEventExpose* event); Glib::RefPtr<Gdk::Pixbuf> get_image() { return image; } private: Glib::RefPtr<Gdk::Pixbuf> image; }; #endif //GTKMM_EXAMPLE_DRAWINGAREALINES_H