예제 #1
0
파일: gadget.cpp 프로젝트: gfannes/nana
	void close_16_pixels(nana::paint::graphics& graph, int x, int y, uint32_t style, uint32_t color)
	{
		if(0 == style)
		{
			x += 3;
			y += 3;

			graph.line(x, y, x + 9, y + 9, color);
			graph.line(x + 1, y, x + 9, y + 8, color);
			graph.line(x, y + 1, x + 8, y + 9, color);

			graph.line(x + 9, y, x , y + 9, color);
			graph.line(x + 8, y, x, y + 8, color);
			graph.line(x + 9, y + 1, x + 1, y + 9, color);
		}
		else
		{
			x += 4;
			y += 4;

			graph.line(x, y, x + 7, y + 7, color);
			graph.line(x + 1, y, x + 7, y + 6, color);
			graph.line(x, y + 1, x + 6, y + 7, color);

			graph.line(x + 7, y, x , y + 7, color);
			graph.line(x + 6, y, x, y + 6, color);
			graph.line(x + 7, y + 1, x + 1, y + 7, color);		
		}
	}
예제 #2
0
		void draw(nana::paint::graphics& graph) const
		{
			graph.line(x_, y_, x2_, y2_, color_);
		}