X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/c45e0693cd6b07a5123955102de53d96143f7fd8..dfabbe2822ffdfb241105cff491b4331096e4af3:/Client/src/item_drain.cpp 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; +}