Lines Matching refs:buf
29 static void sp_ctrlcurve_render(SPCanvasItem *item, SPCanvasBuf *buf);
68 sp_ctrlcurve_render(SPCanvasItem *item, SPCanvasBuf *buf)
72 if (!buf->ct)
80 ink_cairo_set_source_rgba32(buf->ct, cl->rgba);
81 cairo_set_line_width(buf->ct, 1);
82 cairo_new_path(buf->ct);
89 cairo_move_to (buf->ct, p0[Geom::X] - buf->rect.left(), p0[Geom::Y] - buf->rect.top());
90 cairo_curve_to (buf->ct,
91 p1[Geom::X] - buf->rect.left(), p1[Geom::Y] - buf->rect.top(),
92 p2[Geom::X] - buf->rect.left(), p2[Geom::Y] - buf->rect.top(),
93 p3[Geom::X] - buf->rect.left(), p3[Geom::Y] - buf->rect.top() );
95 cairo_stroke(buf->ct);