2 #include "item_exclusa.h"
4 ViewExclusa::ViewExclusa(Glib::ustring _name, int orientacion):ViewItem(_name)
8 image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/exclusa_h.png");
19 image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/exclusa_s.png");
34 ViewExclusa::~ViewExclusa()
38 bool ViewExclusa::on_image_expose_event(GdkEventExpose *e)
40 Glib::RefPtr<Gdk::Colormap> colormap = Gtk::Widget::get_default_colormap();
41 colormap->alloc_color(color);
42 gc->set_foreground(color);
43 gc->set_background(color);
45 w = image.get_width();
46 h = image.get_height();
47 if (actual_flow == 0) return true;
50 image.get_window()->draw_rectangle(gc, 1, w/2-3, 0, 6, h);
53 image.get_window()->draw_rectangle(gc, 1, 0, h/2-3, w, 6);