Lines Matching refs:buf
36 void sp_ctrlline_render(SPCanvasItem *item, SPCanvasBuf *buf);
72 void sp_ctrlline_render(SPCanvasItem *item, SPCanvasBuf *buf)
76 if (!buf->ct) {
87 ink_cairo_set_source_rgba32(buf->ct, 0xffffffbf);
88 cairo_set_line_width(buf->ct, 2);
89 cairo_new_path(buf->ct);
91 cairo_move_to(buf->ct, s[Geom::X] - buf->rect.left(), s[Geom::Y] - buf->rect.top());
92 cairo_line_to(buf->ct, e[Geom::X] - buf->rect.left(), e[Geom::Y] - buf->rect.top());
94 cairo_stroke(buf->ct);
97 ink_cairo_set_source_rgba32(buf->ct, cl->rgba);
98 cairo_set_line_width(buf->ct, 1);
99 cairo_new_path(buf->ct);
101 cairo_move_to(buf->ct, s[Geom::X] - buf->rect.left(), s[Geom::Y] - buf->rect.top());
102 cairo_line_to(buf->ct, e[Geom::X] - buf->rect.left(), e[Geom::Y] - buf->rect.top());
104 cairo_stroke(buf->ct);