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); }
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); } }
void Group::draw(nana::paint::graphics &graphics) { graphics.rectangle(true, _owner.bgcolor()); graphics.round_rectangle( nana::rectangle(20, 20, graphics.width() - 40, graphics.height() - 40), 5, 5, nana::colors::gray_border, true, _owner.bgcolor()); }
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); } }
void draw(nana::paint::graphics& graph) const { if(text_) graph.string(x_, y_, color_, text_); }
void draw(nana::paint::graphics& graph) const { graph.shadow_rectangle(x_, y_, width_, height_, beg_, end_, vertical_); }
void draw(nana::paint::graphics& graph) const { graph.rectangle(x_, y_, width_, height_, color_, issolid_); }
void draw(nana::paint::graphics& graph) const { graph.line(x_, y_, x2_, y2_, color_); }