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");
11 image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/exclusa_s.png");
18 ViewExclusa::~ViewExclusa()
22 bool ViewExclusa::on_image_expose_event(GdkEventExpose *e)
24 Glib::RefPtr<Gdk::Colormap> colormap = image.get_colormap();
25 colormap->alloc_color(color);
26 gc->set_foreground(color);
27 gc->set_background(color);
29 w = image.get_width();
30 h = image.get_height();
33 image.get_window()->draw_rectangle(gc, 1, w/2-2, 0, 4, h);
36 image.get_window()->draw_rectangle(gc, 1, 0, h/2-2, w, 4);