Lines Matching defs:dc
156 DrawingShape::_renderFill(DrawingContext &dc)
158 Inkscape::DrawingContext::Save save(dc);
159 dc.transform(_ctm);
161 bool has_fill = _nrstyle.prepareFill(dc, _item_bbox, _fill_pattern);
164 dc.path(_curve->get_pathvector());
165 _nrstyle.applyFill(dc);
166 dc.fillPreserve();
167 dc.newPath(); // clear path
172 DrawingShape::_renderStroke(DrawingContext &dc)
174 Inkscape::DrawingContext::Save save(dc);
175 dc.transform(_ctm);
177 bool has_stroke = _nrstyle.prepareStroke(dc, _item_bbox, _stroke_pattern);
182 dc.path(_curve->get_pathvector());
183 _nrstyle.applyStroke(dc);
184 dc.strokePreserve();
185 dc.newPath(); // clear path
190 DrawingShape::_renderMarkers(DrawingContext &dc, Geom::IntRect const &area, unsigned flags, DrawingItem *stop_at)
194 i->render(dc, area, flags, stop_at);
199 DrawingShape::_renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigned flags, DrawingItem *stop_at)
210 { Inkscape::DrawingContext::Save save(dc);
211 dc.transform(_ctm);
212 dc.path(_curve->get_pathvector());
214 { Inkscape::DrawingContext::Save save(dc);
215 dc.setSource(rgba);
216 dc.setLineWidth(0.5);
217 dc.setTolerance(0.5);
218 dc.stroke();
221 _renderMarkers(dc, area, flags, stop_at);
231 Inkscape::DrawingContext::Save save(dc);
232 dc.transform(_ctm);
237 bool has_fill = _nrstyle.prepareFill(dc, _item_bbox, _fill_pattern);
238 bool has_stroke = _nrstyle.prepareStroke(dc, _item_bbox, _stroke_pattern);
243 dc.path(_curve->get_pathvector());
245 _nrstyle.applyFill(dc);
246 dc.fillPreserve();
249 _nrstyle.applyStroke(dc);
250 dc.strokePreserve();
252 dc.newPath(); // clear path
255 _renderMarkers(dc, area, flags, stop_at);
264 _renderFill(dc);
267 _renderStroke(dc);
270 _renderMarkers(dc, area, flags, stop_at);
280 void DrawingShape::_clipItem(DrawingContext &dc, Geom::IntRect const & /*area*/)
284 Inkscape::DrawingContext::Save save(dc);
288 dc.setFillRule(CAIRO_FILL_RULE_EVEN_ODD);
290 dc.setFillRule(CAIRO_FILL_RULE_WINDING);
293 dc.transform(_ctm);
294 dc.path(_curve->get_pathvector());
295 dc.fill();