Lines Matching refs:buf
35 static void sp_ctrlquadr_render (SPCanvasItem *item, SPCanvasBuf *buf);
69 sp_ctrlquadr_render (SPCanvasItem *item, SPCanvasBuf *buf)
73 if (!buf->ct)
77 cairo_new_path(buf->ct);
79 Geom::Point min = buf->rect.min();
86 cairo_move_to(buf->ct, p1[Geom::X], p1[Geom::Y]);
87 cairo_line_to(buf->ct, p2[Geom::X], p2[Geom::Y]);
88 cairo_line_to(buf->ct, p3[Geom::X], p3[Geom::Y]);
89 cairo_line_to(buf->ct, p4[Geom::X], p4[Geom::Y]);
90 cairo_line_to(buf->ct, p1[Geom::X], p1[Geom::Y]);
93 //cairo_set_operator (buf->ct, CAIRO_OPERATOR_XOR);
95 cairo_set_source_rgba(buf->ct, SP_RGBA32_B_F(cq->rgba), SP_RGBA32_G_F(cq->rgba), SP_RGBA32_R_F(cq->rgba), SP_RGBA32_A_F(cq->rgba));
96 cairo_fill(buf->ct);