X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/49850f467dae860e12c7851a2f8a79132f87721e..d4d9e7169ed68ba75024ab23f773fbb168ef2e55:/Constructor/src/item.cpp?ds=sidebyside diff --git a/Constructor/src/item.cpp b/Constructor/src/item.cpp index aa15a33..5f5ac15 100644 --- a/Constructor/src/item.cpp +++ b/Constructor/src/item.cpp @@ -189,3 +189,19 @@ void CItem::get_out_logic_connect_position(int& _a, int& _b) void CItem::update_logic_position() { } + +void CItem::draw_connectors() +{ + GdkEventExpose event; + if ( in_x != -1 ) { + CItem::on_expose_event(&event); + Glib::RefPtr window = get_window(); + + gc->set_foreground(red); + gc->set_background(red); + window->draw_rectangle(gc, 1, in_x-5-x, in_y-y, 10, 10); + gc->set_foreground(blue); + gc->set_background(blue); + window->draw_rectangle(gc, 1, out_x-5-x, out_y-y-10, 10, 10); + } +}