X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/d4d9e7169ed68ba75024ab23f773fbb168ef2e55..a4fcf877753b034b1df7fa73d41388849fbc9000:/Constructor/include/workplace.h diff --git a/Constructor/include/workplace.h b/Constructor/include/workplace.h index 41b6a22..fe82717 100644 --- a/Constructor/include/workplace.h +++ b/Constructor/include/workplace.h @@ -24,7 +24,10 @@ class WorkPlace:public Gtk::Fixed { /// Destructor. virtual ~WorkPlace(); - + + /// Funcion que se ejecuta cuando se crea la ventana + virtual void on_realize(); + ///Esta funcion es llamada cada vez que el area de trabajo se tenga que redibujar. virtual bool on_expose_event(GdkEventExpose *event); @@ -59,6 +62,10 @@ class WorkPlace:public Gtk::Fixed { ///Estado de diseño bool *logica; + protected: + void draw_line(int x1, int y1, int x2, int y2, Gdk::Color &color); + Gdk::Color color_in, color_out, color_dot; + Glib::RefPtr gc; }; #endif