X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/60478d9e7985b9df7436c232301e124074948935..737add2e0a2495a40a01fbe4fb344062008e0924:/Client/src/item_drain.cpp?ds=sidebyside diff --git a/Client/src/item_drain.cpp b/Client/src/item_drain.cpp index 0a03dd5..80136ba 100644 --- a/Client/src/item_drain.cpp +++ b/Client/src/item_drain.cpp @@ -25,3 +25,18 @@ ViewDrain::~ViewDrain() { } +bool ViewDrain::on_image_expose_event(GdkEventExpose *e) +{ + Glib::RefPtr colormap = Gtk::Widget::get_default_colormap(); + colormap->alloc_color(color); + gc->set_foreground(color); + gc->set_background(color); + gc->set_line_attributes(6, Gdk::LINE_SOLID, Gdk::CAP_NOT_LAST, Gdk::JOIN_MITER); + int w,h; + w = image.get_width(); + h = image.get_height(); + // TODO : hacer que dibuje arcos en el sentido del codo! + if (actual_flow == 0) return true; + image.get_window()->draw_arc(gc, 1, 8, 8, 16, 16, 0, 360*64); + return true; +}