]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Constructor/item.h
ahi creo que sale andando
[z.facultad/75.42/plaqui.git] / Constructor / item.h
1
2
3 #ifndef GTKMM_EXAMPLE_DRAWINGAREALINES_H
4 #define GTKMM_EXAMPLE_DRAWINGAREALINES_H
5
6 #include <gtkmm/drawingarea.h>
7 #include <gdkmm.h>
8
9 //Custom drawing area with modified expose_event.
10 class CItem:public Gtk::DrawingArea {
11 public:
12         CItem();
13         CItem(const char *filename);
14         ~CItem();
15         virtual bool on_expose_event(GdkEventExpose* event);
16         Glib::RefPtr<Gdk::Pixbuf> get_image() { return image; }
17 protected:
18         Glib::RefPtr<Gdk::Pixbuf> image;
19 };
20
21 #endif //GTKMM_EXAMPLE_DRAWINGAREALINES_H