4 ViewCodo::ViewCodo(Glib::ustring _name, int orientacion):ViewItem(_name)
8 image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/codo_o.png");
11 image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/codo_n.png");
14 image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/codo_e.png");
17 image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/codo_s.png");
28 bool ViewCodo::on_image_expose_event(GdkEventExpose *e)
30 Glib::RefPtr<Gdk::Colormap> colormap = image.get_colormap();
31 colormap->alloc_color(color);
32 gc->set_foreground(color);
33 gc->set_background(color);
35 w = image.get_width();
36 h = image.get_height();
37 // TODO : hacer que dibuje arcos en el sentido del codo!
38 image.get_window()->draw_rectangle(gc, 1, w/2-5, h/2-5, 10, 10);
39 /* switch (orientacion) {
41 image.get_window()->draw_rectangle(gc, 1, w/2-4, 0, 4, h);
44 image.get_window()->draw_rectangle(gc, 1, w/2-4, 0, 4, h);
47 image.get_window()->draw_rectangle(gc, 1, w/2-4, 0, 4, h);
50 image.get_window()->draw_rectangle(gc, 1, w/2-4, 0, 4, h);