]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Constructor/workplace.cpp
Se modifican los iconos para que tengan una mejor pinta en la pantalla.
[z.facultad/75.42/plaqui.git] / Constructor / workplace.cpp
1
2
3 #include "workplace.h"
4 #include "item.h"
5 WorkPlace::WorkPlace( BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> &refGlade):Gtk::Fixed(cobject)
6 {
7         
8 }
9
10 bool WorkPlace::on_expose_event(GdkEventExpose *e)
11 {
12         int x, y;
13         for(x=0; x<get_width(); x+=32) 
14                 for (y=0; y<get_height();y+=32){
15                         get_window()->draw_point (get_style()->get_black_gc(), x,y);
16                         get_window()->draw_point (get_style()->get_black_gc(), x,y+1);
17                         get_window()->draw_point (get_style()->get_black_gc(), x,y-1);
18                         get_window()->draw_point (get_style()->get_black_gc(), x+1,y);
19                         get_window()->draw_point (get_style()->get_black_gc(), x-1,y);
20                 }
21         return true;
22 }