]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/pump.cpp
Se ponen mas simples algunos SigC::bind() :)
[z.facultad/75.42/plaqui.git] / Constructor / src / pump.cpp
index 8fd4e0504fcff0ee2e12c62902482ba3898dc4a8..9663b0bb0c4d737c9991c81ff52d315de1415926 100644 (file)
@@ -32,6 +32,7 @@ Pump::Pump(int orientacion)
        connect_vec.push_back(temp);
 }
 
        connect_vec.push_back(temp);
 }
 
+
 Pump::~Pump()
 {
 }
 Pump::~Pump()
 {
 }
@@ -246,3 +247,17 @@ void Pump::update_logic_position()
                        out_y = y + 32;
        }
 }
                        out_y = y + 32;
        }
 }
+
+bool Pump::on_expose_event(GdkEventExpose* event)
+{
+       CItem::on_expose_event(event);
+       Glib::RefPtr<Gdk::Window> window = get_window();
+
+       gc->set_foreground(red);
+       gc->set_background(red);
+       window->draw_rectangle(gc, 1, image->get_width()-32, 0, 32, 16);
+       gc->set_foreground(blue);
+       gc->set_background(blue);
+       window->draw_rectangle(gc, 1, image->get_width()-32, 16, 32, 16);
+       return true;
+}