/inkscape/src/util/ |
H A D | share.cpp | 23 ptr_shared<char> share_string(char const *string, std::size_t length) { argument 25 char *new_string=new (GC::ATOMIC) char[length+1]; 26 std::memcpy(new_string, string, length); 27 new_string[length] = 0;
|
H A D | enums.h | 45 EnumDataConverter(const EnumData<E>* cd, const unsigned int length) argument 46 : _length(length), _data(cd)
|
H A D | expression-evaluator.cpp | 344 int length = 0; local 349 length++; 354 length++; 358 return g_utf8_offset_to_pointer(start, length) - start;
|
/inkscape/share/extensions/Barcode/ |
H A D | Ean2.py | 29 length = 2 variable in class:Ean2
|
H A D | Ean5.py | 32 length = 5 variable in class:Ean5
|
H A D | BaseEan.py | 39 length = None variable in class:EanBarcode 87 if self.length: 88 return [self.length] 111 (len(code), ', '.join([str(length) for length in lengths])))
|
/inkscape/src/libnrtype/ |
H A D | nr-type-primitives.h | 24 guint length; member in struct:NRNameList 36 guint length; member in struct:NRStyleList
|
/inkscape/src/2geom/ |
H A D | coord.cpp | 118 Vector(T* data, int length) : start_(data), length_(length) { argument 119 ASSERT(length == 0 || (length > 0 && data != NULL)); 128 int length() const { return length_; } 609 int length = value.length(); 612 while (length >= kMaxUint64DecimalDigits) { 615 length -= kMaxUint64DecimalDigits; 619 uint64_t digits = ReadUInt64(value, pos, length); [all...] |
H A D | curve.cpp | 57 Coord Curve::length(Coord tolerance) const function in class:Geom::Curve 59 return ::Geom::length(toSBasis(), tolerance); 157 Coord length = derivs[deriv_n].length(); local 158 if ( ! are_near(length, 0) ) { 159 // length of derivative is non-zero, so return unit vector 160 return derivs[deriv_n] / length;
|
H A D | sbasis-curve.h | 118 virtual Coord length(Coord tolerance) const { return ::Geom::length(inner, tolerance); } function in class:Geom::SBasisCurve
|
H A D | bezier-curve.cpp | 129 Coord BezierCurve::length(Coord tolerance) const function in class:Geom::BezierCurve 364 /* The Bezier length algorithm used in 2Geom utilizes a simple fact: 366 * but shorter than the length of the polyline formed by its control 441 /** @brief Compute the length of a bezier curve given by a vector of its control points 469 /** @brief Compute the length of a quadratic bezier curve given by its control points 498 /** @brief Compute the length of a cubic bezier curve given by its control points
|
H A D | d2-sbasis.cpp | 226 Coord length = derivs[deriv_n].length(); local 227 if ( ! are_near(length, 0) ) { 228 // length of derivative is non-zero, so return unit vector 229 return derivs[deriv_n] / length;
|
H A D | bezier-curve.h | 161 virtual Coord length(Coord tolerance) const; 331 inline Coord length(LineSegment const& seg) { function in namespace:Geom
|
H A D | point.h | 120 Coord length() const { return hypot(_pt[0], _pt[1]); } function in class:Geom::Point 215 /** @brief Check whether the length of the vector is close to 1. */ 217 return are_near(length(), 1.0, eps); 304 * This corresponds to the length of @a p. The result will not overflow even if 310 return p.length(); 376 return (a - b).length(); 391 return are_near((a - b).length(), 0, eps);
|
/inkscape/src/livarot/ |
H A D | AlphaLigne.h | 34 int length; member in class:AlphaLigne
|
/inkscape/src/ |
H A D | dir-util.cpp | 16 size_t base_len = base.length(); 27 while ( (retPos < path.length()) && (path[retPos] == G_DIR_SEPARATOR) ) { 30 if ( (retPos + 1) < path.length() ) { 70 int length; local 133 length = bp - base; 134 if (length >= static_cast<int>(size)) 136 strncpy (result, base, length); 137 rp = result + length; 138 if (*pp || *(pp - 1) == G_DIR_SEPARATOR || length == 0)
|
H A D | inkview.cpp | 75 int length; member in struct:SPSlideShow 222 ss.length = 0; 262 if (ss.length >= ss.size) { 273 ss.slides[ss.length++] = strdup (last_filename); 285 if (ss.length >= ss.size) { 291 ss.slides[ss.length++] = strdup (argv[i]); 479 while (!doc && (current < ss->length - 1)) { 509 while ( !doc && (current < ss->length - 1)) { 526 int current = ss->length - 1;
|
H A D | shortcuts.cpp | 148 if(modifiers.length() > 0 && 149 modifiers.find(',',modifiers.length()-1)!=modifiers.npos) { 150 modifiers.erase(modifiers.length()-1, 1); 608 size_t length=strcspn(iter, ","); local 609 gchar *mod=g_strndup(iter, length); 620 iter += length;
|
/inkscape/src/display/ |
H A D | nr-filter-primitive.cpp | 16 #include "svg/svg-length.h" 85 void FilterPrimitive::set_x(SVGLength const &length) argument 87 _subregion_x = length; 90 void FilterPrimitive::set_y(SVGLength const &length) argument 92 _subregion_y = length; 94 void FilterPrimitive::set_width(SVGLength const &length) argument 96 _subregion_width = length; 98 void FilterPrimitive::set_height(SVGLength const &length) argument 100 _subregion_height = length;
|
H A D | nr-filter.cpp | 47 #include "svg/svg-length.h" 380 void Filter::set_x(SVGLength const &length) argument 382 if (length._set) 383 _region_x = length; 385 void Filter::set_y(SVGLength const &length) argument 387 if (length._set) 388 _region_y = length; 390 void Filter::set_width(SVGLength const &length) argument 392 if (length._set) 393 _region_width = length; 395 set_height(SVGLength const &length) argument [all...] |
/inkscape/src/live_effects/parameter/ |
H A D | text.cpp | 56 const double t, const double length, bool /*use_curvature*/) 67 sp_canvastext_set_coords(canvas_text, pos + n * length); 55 setPosAndAnchor(const Geom::Piecewise<Geom::D2<Geom::SBasis> > &pwd2, const double t, const double length, bool ) argument
|
/inkscape/share/extensions/ |
H A D | ffgeom.py | 84 return Segment(p,self[0]).length() 87 return Segment(p,self[1]).length() 90 len = self.length() 96 def length(self): member in class:Segment 99 if self.length() == 0: return Point(NaN, NaN) 100 ratio = len / self.length() 105 if self.length() == 0: return Point(NaN, NaN)
|
/inkscape/src/live_effects/ |
H A D | lpe-attach-path.cpp | 87 Geom::Coord length = derivs[deriv_n].length(); local 88 if ( ! Geom::are_near(length, 0) ) { 103 Geom::Coord length_2 = derivs[deriv_n_2].length(); 112 Geom::Point pt1 = Geom::Point(start_path_curve_start.getVector().length() * cos(startangle + startderiv), start_path_curve_start.getVector().length() * sin(startangle + startderiv)); 113 Geom::Point pt2 = Geom::Point(start_path_curve_end.getVector().length() * cos(endangle + endderiv), start_path_curve_end.getVector().length() * sin(endangle + endderiv)); 142 Geom::Coord length = derivs[deriv_n].length(); local [all...] |
H A D | lpe-roughen.cpp | 65 fixed_displacement(_("Fixed displacement"), _("Fixed displacement, 1/3 of segment length"), 217 // *exact* zero length, which goes wrong for relative coordinates and 219 // the closing line segment has zero-length. So stop before that one! 232 double length = curve_it1->length(0.001); local 237 splits = ceil(length / max_segment_size);
|
/inkscape/src/extension/internal/ |
H A D | metafile-inout.cpp | 80 Metafile::my_png_write_data(png_structp png_ptr, png_bytep data, png_size_t length) argument 84 size_t nsize = p->size + length; 93 memcpy(p->buffer + p->size, data, length); 94 p->size += length;
|