/inkscape/src/display/ |
H A D | nr-style.cpp | 17 #include "display/drawing-pattern.h" 303 // Pick color/pattern from text 344 bool NRStyle::prepareFill(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern) argument 346 // update fill pattern 350 if (pattern) { 351 fill_pattern = pattern->renderPattern(fill.opacity); 376 bool NRStyle::prepareTextDecorationFill(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern) argument 378 // update text decoration pattern 382 if (pattern) { 383 text_decoration_fill_pattern = pattern 408 prepareStroke(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern) argument 443 prepareTextDecorationStroke(Inkscape::DrawingContext &dc, Geom::OptRect const &paintbox, Inkscape::DrawingPattern *pattern) argument [all...] |
H A D | drawing-item.cpp | 18 #include "display/drawing-pattern.h" 453 DrawingItem::setFillPattern(DrawingPattern *pattern) argument 457 _fill_pattern = pattern; 458 if (pattern) { 459 pattern->_parent = this; 460 assert(pattern->_child_type == CHILD_ORPHAN); 461 pattern->_child_type = CHILD_FILL_PATTERN; 467 DrawingItem::setStrokePattern(DrawingPattern *pattern) argument 471 _stroke_pattern = pattern; 472 if (pattern) { [all...] |
/inkscape/src/live_effects/ |
H A D | lpe-patternalongpath.h | 48 PathParam pattern; member in class:Inkscape::LivePathEffect::LPEPatternAlongPath
|
H A D | lpe-taperstroke.cpp | 189 Piecewise<D2<SBasis> > stretch_along(Piecewise<D2<SBasis> > pwd2_in, Geom::Path pattern, double width); 272 // Construct the pattern 370 Piecewise<D2<SBasis> > stretch_along(Piecewise<D2<SBasis> > pwd2_in, Geom::Path pattern, double prop_scale) argument 375 if ( pattern.empty() ) { 383 D2<Piecewise<SBasis> > patternd2 = make_cuts_independent(pattern.toPwSb());
|
/inkscape/src/widgets/ |
H A D | dash-selector.cpp | 59 dash_combo.set_tooltip_text(_("Dash pattern")); 96 this->set_data("pattern", dashes[0]); 152 for(i=0;i<15;i++){ d[i]=i; } // have to put something in there, this is a pattern hopefully nobody would choose 170 double *pattern = dashes[i]; local 172 while (pattern[np] >= 0.0) 178 if (!Geom::are_near(dash[j], pattern[j], delta)) 193 this->set_data("pattern", dashes[pos]); 197 else { // Hit a custom pattern in the SVG, write it into the combobox. 203 } // store the custom pattern 205 this->set_data("pattern", dashe 213 double *pattern = (double*) this->get_data("pattern"); local 241 sp_dash_to_pixbuf(double *pattern) argument 289 double *pattern = dash_combo.get_active()->get_value(dash_columns.dash); local [all...] |
H A D | paint-selector.h | 81 GtkWidget *pattern; member in struct:SPPaintSelector
|
H A D | fill-style.cpp | 43 #include "sp-pattern.h" 231 * color, alpha, gradient, pattern, etc. for the paint-selector. 624 SPPattern *pattern = psel->getPattern(); local 625 if (!pattern) { 632 Inkscape::XML::Node *patrepr = pattern->getRepr(); 643 // objects who already have the same root pattern but through a different href 657 if (SP_IS_PATTERN(server) && SP_PATTERN(server)->rootPattern() == pattern) 658 // only if this object's pattern is not rooted in our selected pattern, apply 676 (kind == FILL) ? _("Set pattern o [all...] |
/inkscape/share/extensions/ |
H A D | dxf_input.py | 366 pattern = inkex.etree.SubElement(defs, 'pattern', {'id': 'Hatch', 'patternUnits': 'userSpaceOnUse', 'width': '8', 'height': '8', 'x': '0', 'y': '0'}) variable 367 inkex.etree.SubElement(pattern, 'path', {'d': 'M8 4 l-4,4', 'stroke': '#000000', 'stroke-width': '0.25', 'linecap': 'square'}) 368 inkex.etree.SubElement(pattern, 'path', {'d': 'M6 2 l-4,4', 'stroke': '#000000', 'stroke-width': '0.25', 'linecap': 'square'}) 369 inkex.etree.SubElement(pattern, 'path', {'d': 'M4 0 l-4,4', 'stroke': '#000000', 'stroke-width': '0.25', 'linecap': 'square'})
|
/inkscape/src/ui/dialog/ |
H A D | filedialogimpl-gtkmm.h | 52 fileDialogExtensionToPattern(Glib::ustring &pattern, 70 FileType(): name(), pattern(),extension(0) {} 73 Glib::ustring pattern; member in class:Inkscape::UI::Dialog::FileType 241 /// @param pattern - File filtering patter (such as "*.js") 243 void addFilterMenu(Glib::ustring name, Glib::ustring pattern); 294 void addFileType(Glib::ustring name, Glib::ustring pattern);
|
H A D | color-item.cpp | 379 void ColorItem::setPattern(cairo_pattern_t *pattern) argument 381 if (pattern) { 382 cairo_pattern_reference(pattern); 387 _pattern = pattern; 544 // TODO: the pattern to draw should be in the widget that draws the preview,
|
H A D | filedialogimpl-gtkmm.cpp | 74 void fileDialogExtensionToPattern(Glib::ustring &pattern, Glib::ustring &extension) argument 79 pattern += '['; 80 pattern += Glib::Unicode::toupper(ch); 81 pattern += Glib::Unicode::tolower(ch); 82 pattern += ']'; 84 pattern += ch; 755 void FileOpenDialogImplGtk::addFilterMenu(Glib::ustring name, Glib::ustring pattern) argument 761 allFilter->add_pattern(pattern); 765 allFilter.add_pattern(pattern); 1175 filter->add_pattern(type.pattern); 1185 addFileType(Glib::ustring name, Glib::ustring pattern) argument [all...] |
H A D | filedialogimpl-win32.cpp | 206 void FileOpenDialogImplWin32::addFilterMenu(Glib::ustring name, Glib::ustring pattern) argument 213 ustring all_exe_files_filter = pattern; 1766 void FileSaveDialogImplWin32::addFileType(Glib::ustring name, Glib::ustring pattern) argument 1775 ustring all_exe_files_filter = pattern;
|
/inkscape/src/libnrtype/ |
H A D | FontFactory.cpp | 67 static void FactorySubstituteFunc(FcPattern *pattern,gpointer /*data*/) argument 69 FcPatternAddBool(pattern, "FC_OUTLINE",FcTrue); 71 //FcPatternGetString(pattern, "FC_FAMILY",0, &fam);
|
/inkscape/src/ |
H A D | sp-pattern.cpp | 2 * SVG <pattern> implementation 35 #include "sp-pattern.h" 80 doc->addResource("pattern", this); 87 this->document->removeResource("pattern", this); 334 Inkscape::XML::Node *repr = xml_doc->createElement("svg:pattern"); 349 SPPattern *pattern = this; local 350 if (pattern->href.empty() || pattern->hrefcount > _countHrefs(item)) { 351 pattern = _chain(); 352 Glib::ustring href = Glib::ustring::compose("url(#%1)", pattern [all...] |
H A D | desktop-style.cpp | 37 #include "sp-pattern.h" 219 * FIXME: in set_style, compensate pattern and gradient fills, stroke width, 574 SPPattern *pattern = dynamic_cast<SPPattern *>(server); local 575 if (!pattern) { 582 return QUERY_STYLE_MULTIPLE_DIFFERENT; // different pattern roots
|
H A D | sp-item.cpp | 40 #include "sp-pattern.h" 1226 SPPattern *pattern = serverPatt->clone_if_necessary(this, "fill"); local 1227 pattern->transform_multiply(postmul, set); 1236 SPPattern *pattern = serverPatt->clone_if_necessary(this, "stroke"); local 1237 pattern->transform_multiply(postmul, set); 1366 // _Before_ full pattern/gradient transform: t_paint * t_item * t_ancestors 1367 // _After_ full pattern/gradient transform: t_paint_new * t_item * t_ancestors * advertised_transform 1462 // recursively compensate pattern fill if it's not to be transformed 1463 if (!prefs->getBool("/options/transform/pattern", true)) { 1471 // this converts the gradient/pattern fil [all...] |
H A D | selection-chemistry.cpp | 76 #include "sp-pattern.h" 1226 // FIXME: also transform gradient/pattern fills, by forking? NO, this must be nondestructive 3069 * Move objects inside symbol so bbox corner at 0,0 (see marker/pattern) 3290 desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Select <b>object(s)</b> to convert to pattern.")); 3386 _("Objects to pattern")); 3402 desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Select an <b>object with pattern fill</b> to extract objects from.")); 3428 SPPattern *pattern = basePat->rootPattern(); local 3433 for (SPObject *child = pattern->firstChild() ; child != NULL; child = child->next ) { 3461 desktop->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("<b>No pattern fills</b> in the selection."));
|
/inkscape/src/ui/ |
H A D | clipboard.cpp | 61 #include "sp-pattern.h" 773 SPPattern *pattern = dynamic_cast<SPPattern *>(server); local 774 if ( pattern ) { 775 _copyPattern(pattern); 783 SPPattern *pattern = dynamic_cast<SPPattern *>(server); local 784 if ( pattern ) { 785 _copyPattern(pattern); 888 * Copy a single pattern to the clipboard document's defs element. 890 void ClipboardManagerImpl::_copyPattern(SPPattern *pattern) argument 893 while (pattern) { [all...] |
/inkscape/src/extension/internal/ |
H A D | cairo-render-context.cpp | 46 #include "sp-pattern.h" 1016 TRACE(("%f x %f pattern\n", width, height)); 1030 // apply pattern transformation 1035 // create pattern contents coordinate system 1057 // Cairo requires an integer pattern surface width/height. 1058 // Subtract 0.5 to prevent small rounding errors from increasing pattern size by one pixel. 1062 TRACE(("pattern surface size: %f x %f\n", surface_width, surface_height)); 1066 // adjust the size of the painted pattern to fit exactly the created surface 1067 // this has to be done because of the rounding to obtain an integer pattern surface width/height 1076 // despite scaling up/down by subpixel scaler, the origin point of the pattern mus 1212 cairo_pattern_t *pattern = NULL; local 1341 cairo_pattern_t *pattern = _createPatternForPaintServer(paint_server, pbox, alpha); local 1378 cairo_pattern_t *pattern = _createPatternForPaintServer(SP_STYLE_STROKE_SERVER(style), pbox, alpha); local [all...] |
H A D | text_reassemble.c | 260 FcPattern *pattern, *fpat; local 289 !(pattern = FcNameParse((const FcChar8 *)&(fsp->fontspec))) || 290 !FcConfigSubstitute(NULL, pattern, FcMatchPattern) 292 FcDefaultSubstitute(pattern); 294 !(fpat = FcFontRenderPrepare(NULL, pattern, fsp->fontset->fonts[i])) || 312 FcPatternDestroy(pattern); 733 FcPattern *pattern = NULL; local 753 pattern = FcNameParse((const FcChar8 *)fontspec); 755 if(!(pattern)){ status = -2; break; } 756 if(!FcConfigSubstitute(NULL, pattern, FcMatchPatter [all...] |
/inkscape/src/extension/internal/pdfinput/ |
H A D | svg-builder.cpp | 300 // Stroke color/pattern 391 // Fill color/pattern 596 * \brief Checks whether the given pattern type can be represented in SVG 599 bool SvgBuilder::isPatternTypeSupported(GfxPattern *pattern) { argument 600 if ( pattern != NULL ) { 601 if ( pattern->getType() == 2 ) { // shading pattern 602 GfxShading *shading = (static_cast<GfxShadingPattern *>(pattern))->getShading(); 609 } else if ( pattern->getType() == 1 ) { // tiling pattern 623 _createPattern(GfxPattern *pattern, GfxState *state, bool is_stroke) argument [all...] |
H A D | pdf-parser.cpp | 1212 GfxPattern *pattern; local 1215 (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL, NULL))) { 1216 state->setFillPattern(pattern); 1221 (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL))) { 1222 state->setFillPattern(pattern); 1264 GfxPattern *pattern; local 1267 (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL, NULL))) { 1268 state->setStrokePattern(pattern); 1273 (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL))) { 1274 state->setStrokePattern(pattern); 1534 GfxPattern *pattern; local 1553 GfxPattern *pattern; local 3288 GfxPattern *pattern = state->getFillPattern(); local [all...] |
/inkscape/ |
H A D | buildtool.cpp | 435 * Even if we found one or more pattern, this branch will be executed, 3042 * Check if a given string matches a given regex pattern 3044 bool regexMatch(const String &str, const String &pattern); 3650 * Check if a given string matches a given regex pattern 3652 bool MakeBase::regexMatch(const String &str, const String &pattern) argument 3654 int res = slre_match(pattern.c_str(), str.c_str(), str.length(), NULL, 0, SLRE_IGNORE_CASE); 3680 error("regex failure (%s) while parsing [%s]!\n", err.c_str(), pattern.c_str()); 4399 String &pattern = *iter; local 4404 if (regexMatch(s, pattern)) 4422 String &pattern local 9476 glob(const String &pattern) argument [all...] |