Esempio n. 1
0
		void draw_corner_point(::nana::paint::graphics& graph, const rectangle& r)
		{
			graph.set_pixel(r.x, r.y);
			graph.set_pixel(r.right() - 1, r.y);
			graph.set_pixel(r.right() - 1, r.bottom() - 1);
			graph.set_pixel(r.x, r.bottom() - 1);
		}
Esempio n. 2
0
		void double_arrow_line(nana::paint::graphics & graph, int x, int y, color_t color, bool horizontal)
		{
			graph.set_pixel(x, y, color);
			if(horizontal)
			{
				graph.set_pixel(x + 1, y, color);
				graph.set_pixel(x + 4, y, color);
				graph.set_pixel(x + 5, y, color);
			}
			else
			{
				graph.set_pixel(x, y + 1, color);
				graph.set_pixel(x, y + 4, color);
				graph.set_pixel(x, y + 5, color);
			}
		}