]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Client/src/item.cpp
Se corrige un bug.
[z.facultad/75.42/plaqui.git] / Client / src / item.cpp
1 #include "item.h"
2
3
4 ViewItem::ViewItem(Glib::ustring _name):Gtk::EventBox(),image()
5 {
6         name = _name;
7         set_events(Gdk::BUTTON_PRESS_MASK);
8         add(image);
9 }
10
11 ViewItem::~ViewItem()
12 {
13 }
14 /*
15 bool ViewItem::on_expose_event(GdkEventExpose* event)
16 {
17         image->render_to_drawable ( get_window(),  get_style()->get_black_gc(), 0,  0,  0,  0,  image->get_width() ,image->get_height() , 
18                                                                                                                                 Gdk::RGB_DITHER_NONE, 0, 0);
19         return true;
20 }
21 */
22 void ViewItem::set_position(int _x, int _y)
23 {
24         x = _x;
25         y = _y;
26 }
27
28 void ViewItem::set_name(Glib::ustring _name)
29 {
30         name = _name;
31 }
32
33 Glib::ustring ViewItem::get_name()
34 {
35         return name;
36 }
37