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 = image.get_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();
49 image.get_window()->draw_rectangle(gc, 1, w/2-2, 0, 4, h);
52 image.get_window()->draw_rectangle(gc, 1, 0, h/2-2, w, 4);