/inkscape/src/ui/tools/ |
H A D | freehand-base.cpp | 64 static void spdc_selection_changed(Inkscape::Selection *sel, FreehandBase *dc); 65 static void spdc_selection_modified(Inkscape::Selection *sel, guint flags, FreehandBase *dc); 67 static void spdc_attach_selection(FreehandBase *dc, Inkscape::Selection *sel); 75 static void spdc_flush_white(FreehandBase *dc, SPCurve *gc); 77 static void spdc_reset_white(FreehandBase *dc); 78 static void spdc_free_colors(FreehandBase *dc); 213 static Glib::ustring const tool_name(FreehandBase *dc) argument 215 return ( SP_IS_PEN_CONTEXT(dc) 220 static void spdc_paste_curve_as_freehand_shape(Geom::PathVector const &newpath, FreehandBase *dc, SPItem *item) argument 226 Effect::createAndApply(PATTERN_ALONG_PATH, dc 231 spdc_apply_powerstroke_shape(const std::vector<Geom::Point> & points, FreehandBase *dc, SPItem *item) argument 273 spdc_apply_bend_shape(gchar const *svgd, FreehandBase *dc, SPItem *item) argument 292 spdc_apply_simplify(std::string threshold, FreehandBase *dc, SPItem *item) argument 310 spdc_check_for_and_apply_waiting_LPE(FreehandBase *dc, SPItem *item, SPCurve *curve) argument 530 spdc_selection_changed(Inkscape::Selection *sel, FreehandBase *dc) argument 539 spdc_selection_modified(Inkscape::Selection *sel, guint , FreehandBase *dc) argument 546 spdc_attach_selection(FreehandBase *dc, Inkscape::Selection * ) argument 645 spdc_concat_colors_and_flush(FreehandBase *dc, gboolean forceclosed) argument 763 spdc_flush_white(FreehandBase *dc, SPCurve *gc) argument 847 spdc_test_inside(FreehandBase *dc, Geom::Point p) argument 865 spdc_reset_white(FreehandBase *dc) argument 881 spdc_free_colors(FreehandBase *dc) argument [all...] |
H A D | freehand-base.h | 110 SPDrawAnchor *spdc_test_inside(FreehandBase *dc, Geom::Point p); 117 void spdc_concat_colors_and_flush(FreehandBase *dc, gboolean forceclosed); 122 * @param dc draw context. 135 void spdc_check_for_and_apply_waiting_LPE(FreehandBase *dc, SPItem *item);
|
/inkscape/src/display/ |
H A D | drawing-shape.cpp | 156 DrawingShape::_renderFill(DrawingContext &dc) argument 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) argument 174 Inkscape::DrawingContext::Save save(dc); 190 _renderMarkers(DrawingContext &dc, Geom::IntRect const &area, unsigned flags, DrawingItem *stop_at) argument 199 _renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigned flags, DrawingItem *stop_at) argument 280 _clipItem(DrawingContext &dc, Geom::IntRect const & ) argument [all...] |
H A D | drawing-text.cpp | 263 void DrawingText::decorateStyle(DrawingContext &dc, double vextent, double xphase, Geom::Point const &p1, Geom::Point const &p2, double thickness) argument 297 dc.rectangle( Geom::Rect(ps + poff, pf - poff)); 300 dc.rectangle( Geom::Rect(ps + poff, pf - poff)); 319 dc.rectangle( Geom::Rect(pvlast + poff, pf - poff)); 322 dc.rectangle( Geom::Rect(pvlast + poff, pv - poff)); 344 dc.rectangle( Geom::Rect(pvlast + poff, pf - poff)); 347 dc.rectangle( Geom::Rect(pvlast + poff, pv - poff)); 362 dc.moveTo(Geom::Point(x, y + amp * wave[i])); 366 dc.lineTo(Geom::Point(x, y + amp * wave[i])); 370 dc 385 decorateItem(DrawingContext &dc, double phase_length, bool under) argument 441 _renderItem(DrawingContext &dc, Geom::IntRect const & , unsigned , DrawingItem * ) argument 650 _clipItem(DrawingContext &dc, Geom::IntRect const & ) argument [all...] |
H A D | drawing-image.cpp | 96 unsigned DrawingImage::_renderItem(DrawingContext &dc, Geom::IntRect const &/*area*/, unsigned /*flags*/, DrawingItem * /*stop_at*/) argument 106 Inkscape::DrawingContext::Save save(dc); 107 dc.transform(_ctm); 108 dc.newPath(); 109 dc.rectangle(_clipbox); 110 dc.clip(); 112 dc.translate(_origin); 113 dc.scale(_scale); 114 dc.setSource(_pixbuf->getSurfaceRaw(), 0, 0); 126 dc [all...] |
H A D | drawing-shape.h | 37 virtual unsigned _renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigned flags, 39 virtual void _clipItem(DrawingContext &dc, Geom::IntRect const &area); 43 void _renderFill(DrawingContext &dc); 44 void _renderStroke(DrawingContext &dc); 45 void _renderMarkers(DrawingContext &dc, Geom::IntRect const &area, unsigned flags,
|
H A D | nr-style.h | 33 bool prepareFill(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern); 34 bool prepareStroke(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern); 35 bool prepareTextDecorationFill(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern); 36 bool prepareTextDecorationStroke(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern); 37 void applyFill(Inkscape::DrawingContext &dc); 38 void applyStroke(Inkscape::DrawingContext &dc); 39 void applyTextDecorationFill(Inkscape::DrawingContext &dc); 40 void applyTextDecorationStroke(Inkscape::DrawingContext &dc);
|
H A D | drawing-pattern.cpp | 87 Inkscape::DrawingContext dc(pattern_surface); 88 dc.transform( pattern_surface.drawingTransform().inverse() ); 95 dc.pushGroup(); // this group is for pattern + opacity 99 dc.setSource(0.8, 0.0, 0.8); 100 dc.paint(); 105 render(dc, one_tile, RENDER_DEFAULT); 108 //introduced by dc.transform( pattern_surface.drawingTransform().inverse() ); 114 dc.transform(initial_transform); 116 render(dc, one_tile, RENDER_DEFAULT); 117 dc [all...] |
H A D | nr-style.cpp | 344 bool NRStyle::prepareFill(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern) argument 353 fill_pattern = fill.server->pattern_new(dc.raw(), paintbox, fill.opacity); 370 void NRStyle::applyFill(Inkscape::DrawingContext &dc) argument 372 dc.setSource(fill_pattern); 373 dc.setFillRule(fill_rule); 376 bool NRStyle::prepareTextDecorationFill(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern) argument 386 text_decoration_fill_pattern = text_decoration_fill.server->pattern_new(dc.raw(), 402 void NRStyle::applyTextDecorationFill(Inkscape::DrawingContext &dc) argument 404 dc.setSource(text_decoration_fill_pattern); 408 bool NRStyle::prepareStroke(Inkscape::DrawingContext &dc, Geo argument 433 applyStroke(Inkscape::DrawingContext &dc) argument 443 prepareTextDecorationStroke(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern) argument 468 applyTextDecorationStroke(Inkscape::DrawingContext &dc) argument [all...] |
H A D | drawing-group.cpp | 93 DrawingGroup::_renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigned flags, DrawingItem *stop_at) argument 98 i->render(dc, area, flags, stop_at); 106 i->render(dc, area, flags | RENDER_FILTER_BACKGROUND, stop_at); 110 i->render(dc, area, flags, stop_at); 118 DrawingGroup::_clipItem(DrawingContext &dc, Geom::IntRect const &area) argument 121 i->clip(dc, area);
|
H A D | drawing-group.h | 34 virtual unsigned _renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigned flags, 36 virtual void _clipItem(DrawingContext &dc, Geom::IntRect const &area);
|
H A D | drawing-text.h | 66 virtual unsigned _renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigned flags, 68 virtual void _clipItem(DrawingContext &dc, Geom::IntRect const &area); 72 void decorateItem(DrawingContext &dc, double phase_length, bool under); 73 void decorateStyle(DrawingContext &dc, double vextent, double xphase, Geom::Point const &p1, Geom::Point const &p2, double thickness);
|
H A D | drawing-item.cpp | 29 void set_cairo_blend_operator( DrawingContext &dc, unsigned blend_mode ) { argument 36 dc.setOperator(CAIRO_OPERATOR_MULTIPLY); 39 dc.setOperator(CAIRO_OPERATOR_SCREEN); 42 dc.setOperator(CAIRO_OPERATOR_DARKEN); 45 dc.setOperator(CAIRO_OPERATOR_LIGHTEN); 48 dc.setOperator(CAIRO_OPERATOR_OVERLAY); 51 dc.setOperator(CAIRO_OPERATOR_COLOR_DODGE); 54 dc.setOperator(CAIRO_OPERATOR_COLOR_BURN); 57 dc.setOperator(CAIRO_OPERATOR_HARD_LIGHT); 60 dc 679 render(DrawingContext &dc, Geom::IntRect const &area, unsigned flags, DrawingItem *stop_at) argument 864 _renderOutline(DrawingContext &dc, Geom::IntRect const &area, unsigned flags) argument 900 clip(Inkscape::DrawingContext &dc, Geom::IntRect const &area) argument [all...] |
H A D | drawing-surface.cpp | 274 DrawingCache::paintFromCache(DrawingContext &dc, Geom::OptIntRect &area) argument 303 dc.rectangle(_convertRect(tmp)); 305 dc.setSource(this); 306 dc.fill(); 317 DrawingContext dc(surface, _origin); 319 Inkscape::DrawingContext::Save save(dc); 324 dc.rectangle(_convertRect(tmp)); 326 dc.setSource(0,1,0,0.1); 327 dc.fill(); 329 dc [all...] |
H A D | drawing-context.cpp | 30 DrawingContext::Save::Save(DrawingContext &dc) argument 31 : _dc(&dc) 41 void DrawingContext::Save::save(DrawingContext &dc) argument 47 _dc = &dc;
|
H A D | drawing.cpp | 170 Drawing::render(DrawingContext &dc, Geom::IntRect const &area, unsigned flags) argument 173 _root->render(dc, area, flags); 178 cairo_surface_t *input = dc.rawTarget(); 181 Geom::Point origin = dc.targetLogicalBounds().min(); 182 dc.setSource(out, origin[Geom::X], origin[Geom::Y]); 183 dc.setOperator(CAIRO_OPERATOR_SOURCE); 184 dc.paint(); 185 dc.setOperator(CAIRO_OPERATOR_OVER);
|
H A D | drawing-image.h | 40 virtual unsigned _renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigned flags,
|
H A D | nr-filter-image.cpp | 113 Inkscape::DrawingContext dc(out, sa.min()); 114 dc.transform(user2pb); // we are now in primitive units 115 dc.translate(feImageX, feImageY); 116 // dc.scale(scaleX, scaleY); No scaling should be done 119 // dc.translate(render_rect.min()); This seems incorrect 123 drawing.render(dc, render_rect);
|
/inkscape/src/extension/internal/ |
H A D | wmf-inout.cpp | 227 sprintf(tmpcolor,"%6.6X",sethexcolor(d->dc[d->level].textColor)); 231 sprintf(tmpcolor,"%6.6X",sethexcolor(d->dc[d->level].bkColor)); 364 if(d->dc[d->level].bkMode == U_TRANSPARENT || hatchType >= U_HS_SOLIDCLR){ 382 sprintf(bkcolor,"%6.6X",sethexcolor(d->dc[d->level].bkColor)); 654 if (op >= 0 && d->dc[d->level].clip_id) { 655 unsigned int real_idx = d->dc[d->level].clip_id - 1; 669 d->dc[d->level].clip_id = d->clips.count; // one more than the slot where it is actually stored 673 tmp_clippath << "\n\tid=\"clipWmfPath" << d->dc[d->level].clip_id << "\""; 683 d->dc[d->level].clip_id = idx; 698 sp_color_get_rgb_floatv( &(d->dc[ [all...] |
H A D | emf-inout.cpp | 178 d->dc[d->level].worldTransform.eM11 * d->dc[d->level].worldTransform.eM22 - 179 d->dc[d->level].worldTransform.eM12 * d->dc[d->level].worldTransform.eM21; 194 cxform << d->dc[d->level].worldTransform.eM11/scale; cxform << ","; 195 cxform << d->dc[d->level].worldTransform.eM12/scale; cxform << ","; 196 cxform << d->dc[d->level].worldTransform.eM21/scale; cxform << ","; 197 cxform << d->dc[d->level].worldTransform.eM22/scale; cxform << ","; 200 double newx = x * d->dc[d->level].worldTransform.eM11/scale + y * d->dc[ [all...] |
/inkscape/src/ui/ |
H A D | draw-anchor.cpp | 32 SPDrawAnchor *sp_draw_anchor_new(Inkscape::UI::Tools::FreehandBase *dc, SPCurve *curve, bool start, Geom::Point delta) argument 34 if (SP_IS_LPETOOL_CONTEXT(dc)) { 41 a->dc = dc; 47 a->ctrl = ControlManager::getManager().createControl(dc->getDesktop().getControls(), Inkscape::CTRL_TYPE_ANCHOR); 79 if ( activate && ( Geom::LInfty( w - anchor->dc->getDesktop().d2w(anchor->dp) ) <= (ctrl->box.width() / 2.0) ) ) {
|
H A D | draw-anchor.h | 26 Inkscape::UI::Tools::FreehandBase *dc; member in struct:SPDrawAnchor 35 SPDrawAnchor *sp_draw_anchor_new(Inkscape::UI::Tools::FreehandBase *dc, SPCurve *curve, bool start,
|
/inkscape/src/extension/internal/bitmap/ |
H A D | imagemagick.cpp | 159 ImageMagickDocCache * dc = dynamic_cast<ImageMagickDocCache *>(docCache); local 160 if (dc == NULL) { // should really never happen 165 for (int i = 0; i < dc->_imageCount; i++) 169 Magick::Image effectedImage = *dc->_images[i]; // make a copy 175 postEffect(&effectedImage, dc->_imageItems[i]); 177 // dc->_nodes[i]->setAttribute("xlink:href", dc->_caches[i], true); 187 if (new_len > dc->_cacheLengths[i]) { 188 dc->_cacheLengths[i] = (int)(new_len * 1.2); 189 dc [all...] |
/inkscape/src/helper/ |
H A D | png-write.cpp | 338 Inkscape::DrawingContext dc(s, bbox.min()); 339 dc.setSource(ebp->background); 340 dc.setOperator(CAIRO_OPERATOR_SOURCE); 341 dc.paint(); 342 dc.setOperator(CAIRO_OPERATOR_OVER); 345 ebp->drawing->render(dc, bbox);
|
/inkscape/src/ui/cache/ |
H A D | svg_preview_cache.cpp | 59 Inkscape::DrawingContext dc(s, area.min()); 61 drawing.render(dc, area, Inkscape::DrawingItem::RENDER_BYPASS_CACHE);
|