X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/a0481d50f6da9cac5efd3502c3657b3fc461ec0d..43fc1b3f57852f2af098fa7411e83220015aaa6f:/Client/include/item.h diff --git a/Client/include/item.h b/Client/include/item.h index 341039d..c77df41 100644 --- a/Client/include/item.h +++ b/Client/include/item.h @@ -8,18 +8,19 @@ #include #include -class Item:public Gtk::DrawingArea { +class ViewItem:public Gtk::EventBox { public: - Item(Glib::ustring _name); - virtual ~Item(); - virtual bool on_expose_event(GdkEventExpose* event); + ViewItem(Glib::ustring _name); + virtual ~ViewItem(); +// virtual bool on_expose_event(GdkEventExpose* event); Glib::ustring get_name(); void set_position(int _x, int _y); void set_name(Glib::ustring _name); protected: Glib::ustring name; - Glib::RefPtr image; + Gtk::Image image; int x, y; }; #endif +