Lines Matching refs:dc

344 bool NRStyle::prepareFill(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern)
353 fill_pattern = fill.server->pattern_new(dc.raw(), paintbox, fill.opacity);
370 void NRStyle::applyFill(Inkscape::DrawingContext &dc)
372 dc.setSource(fill_pattern);
373 dc.setFillRule(fill_rule);
376 bool NRStyle::prepareTextDecorationFill(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern)
386 text_decoration_fill_pattern = text_decoration_fill.server->pattern_new(dc.raw(),
402 void NRStyle::applyTextDecorationFill(Inkscape::DrawingContext &dc)
404 dc.setSource(text_decoration_fill_pattern);
408 bool NRStyle::prepareStroke(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern)
416 stroke_pattern = stroke.server->pattern_new(dc.raw(), paintbox, stroke.opacity);
433 void NRStyle::applyStroke(Inkscape::DrawingContext &dc)
435 dc.setSource(stroke_pattern);
436 dc.setLineWidth(stroke_width);
437 dc.setLineCap(line_cap);
438 dc.setLineJoin(line_join);
439 dc.setMiterLimit(miter_limit);
440 cairo_set_dash(dc.raw(), dash, n_dash, dash_offset); // fixme
443 bool NRStyle::prepareTextDecorationStroke(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern)
453 dc.raw(), paintbox, text_decoration_stroke.opacity);
468 void NRStyle::applyTextDecorationStroke(Inkscape::DrawingContext &dc)
470 dc.setSource(text_decoration_stroke_pattern);
471 dc.setLineWidth(text_decoration_stroke_width);
472 dc.setLineCap(CAIRO_LINE_CAP_BUTT);
473 dc.setLineJoin(CAIRO_LINE_JOIN_MITER);
474 dc.setMiterLimit(miter_limit);
475 cairo_set_dash(dc.raw(), 0, 0, 0.0); // fixme (no dash)