Searched refs:offset (Results 1 - 25 of 104) sorted by relevance

12345

/inkscape/src/display/
H A Dnr-filter-offset.cpp13 #include "display/nr-filter-offset.h"
58 Geom::Point offset(x, y);
59 offset *= trans;
60 offset[X] -= trans[4];
61 offset[Y] -= trans[5];
63 cairo_set_source_surface(ct, in, offset[X], offset[Y]);
86 Geom::Point offset(dx, dy);
87 offset *= trans;
88 offset[
[all...]
H A Dnr-filter-tile.cpp96 Geom::Point offset( col*tile_area.width(), row*tile_area.height() );
97 offset *= trans;
98 offset[Geom::X] -= trans[4];
99 offset[Geom::Y] -= trans[5];
101 cairo_set_source_surface(ct, tile, offset[Geom::X], offset[Geom::Y]);
H A Dnr-filter-component-transfer.h48 double offset[4]; member in class:Inkscape::Filters::FilterComponentTransfer
/inkscape/src/
H A Dsp-gradient-vector.h16 double offset; member in struct:SPGradientStop
H A Dsp-tag-use-reference.cpp34 static void sp_usepath_href_changed(SPObject *old_ref, SPObject *ref, SPTagUsePath *offset);
35 static void sp_usepath_delete_self(SPObject *deleted, SPTagUsePath *offset);
115 sp_usepath_href_changed(SPObject */*old_ref*/, SPObject */*ref*/, SPTagUsePath *offset) argument
117 offset->quit_listening();
118 SPItem *refobj = offset->getObject();
120 offset->start_listening(refobj);
125 sp_usepath_delete_self(SPObject */*deleted*/, SPTagUsePath *offset) argument
127 offset->owner->deleteObject();
H A Dsp-use-reference.cpp32 static void sp_usepath_href_changed(SPObject *old_ref, SPObject *ref, SPUsePath *offset);
34 static void sp_usepath_delete_self(SPObject *deleted, SPUsePath *offset);
35 static void sp_usepath_source_modified(SPObject *iSource, guint flags, SPUsePath *offset);
119 sp_usepath_href_changed(SPObject */*old_ref*/, SPObject */*ref*/, SPUsePath *offset) argument
121 offset->quit_listening();
122 SPItem *refobj = offset->getObject();
124 offset->start_listening(refobj);
126 offset->sourceDirty=true;
127 offset->owner->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
174 sp_usepath_delete_self(SPObject */*deleted*/, SPUsePath *offset) argument
191 sp_usepath_source_modified(SPObject * , guint , SPUsePath *offset) argument
[all...]
H A Dgc-finalized.h77 // finalized; instead we use an offset-from-base-address
114 /// invoke the destructor for an object given a base and offset pair
115 static void _invoke_dtor(void *base, void *offset);
117 /// turn 'this' pointer into an offset-from-base-address (stored as void *)
123 /// reconstitute 'this' given an offset-from-base-address in a void *
124 static Finalized *_unoffset(void *base, void *offset) { argument
127 reinterpret_cast<std::ptrdiff_t>(offset)
H A Dgc-finalized.cpp45 void Finalized::_invoke_dtor(void *base, void *offset) { argument
46 Finalized *object=_unoffset(base, offset);
H A Dsp-offset.cpp2 * Implementation of <path sodipodi:type="inkscape:offset">.
35 #include "sp-offset.h"
50 * The goal is to have a source shape (= originalPath), an offset (= radius)
51 * and compute the offset of the source by the radius. To get it to work,
56 * "linked" offset, as they've been dubbed, there is an additional
64 * offset is done in sp_offset_set_shape(), a function that is called whenever
65 * a change occurs to the offset (change of source or change of radius).
71 static void refresh_offset_source(SPOffset* offset);
73 static void sp_offset_start_listening(SPOffset *offset,SPObject* to);
74 static void sp_offset_quit_listening(SPOffset *offset);
777 sp_offset_distance_to_original(SPOffset * offset, Geom::Point px) argument
937 sp_offset_top_point(SPOffset const * offset, Geom::Point *px) argument
991 sp_offset_start_listening(SPOffset *offset,SPObject* to) argument
1005 sp_offset_quit_listening(SPOffset *offset) argument
1020 sp_offset_href_changed(SPObject * , SPObject * , SPOffset *offset) argument
1075 sp_offset_delete_self(SPObject * , SPOffset *offset) argument
1098 SPOffset *offset = SP_OFFSET(item); local
1107 refresh_offset_source(SPOffset* offset) argument
1203 sp_offset_get_source(SPOffset *offset) argument
[all...]
H A Dsp-offset.h27 * An offset is defined by curve and radius. The original curve is kept as
32 * The goal is to have a source shape (= originalPath), an offset (= radius)
33 * and compute the offset of the source by the radius. To get it to work,
38 * "linked" offset, as they've been dubbed, there is an additional
46 * offset is done in sp_offset_set_shape(), a function that is called whenever
47 * a change occurs to the offset (change of source or change of radius).
59 float rad; ///< offset radius
91 double sp_offset_distance_to_original (SPOffset * offset, Geom::Point px);
92 void sp_offset_top_point (SPOffset const *offset, Geom::Point *px);
94 SPItem *sp_offset_get_source (SPOffset *offset);
[all...]
H A Dgradient-chemistry.cpp610 // if this is valid but weird gradient without an offset-zero stop element,
613 if (stop->offset != 0)
638 SPStop *sp_vector_add_stop(SPGradient *vector, SPStop* prev_stop, SPStop* next_stop, gfloat offset) argument
641 g_message("sp_vector_add_stop(%p, %p, %p, %f)", vector, prev_stop, next_stop, offset);
649 newstop->offset = offset;
650 sp_repr_set_css_double( newstop->getRepr(), "offset", (double)offset);
653 guint32 cnew = average_color (c1, c2, (offset - prev_stop->offset) / (next_sto
928 double offset; local
1071 double offset = Geom::LineSegment(begin, end).nearestTime(p); local
1166 double offset = Geom::LineSegment(start, end).nearestTime(p); local
1183 double offset = Geom::LineSegment(start, end).nearestTime(p); local
1302 gdouble offset = lg->vector.stops.at(point_i).offset; local
1331 gdouble offset = rg->vector.stops.at(point_i).offset; local
1341 gdouble offset = rg->vector.stops.at(point_i).offset; local
[all...]
H A Dsp-stop.h30 float offset; member in class:SPStop
/inkscape/src/live_effects/
H A Dlpe-offset.cpp2 * LPE <offset> implementation
16 #include "live_effects/lpe-offset.h"
31 offset_pt(_("Offset"), _("Handle to control the distance of the offset from the curve"), "offset_pt", &wr, this)
45 Geom::Point offset = *(SP_SHAPE(lpeitem)->_curve->first_point()); local
46 offset_pt.param_update_default(offset);
47 offset_pt.param_setValue(offset,true);
69 double offset = L2(A - offset_pt); local
74 output = pwd2_in + n * offset;
75 append_half_circle(output, pwd2_in.lastValue(), n.lastValue() * offset);
76 output.continuousConcat(reverse(pwd2_in - n * offset));
[all...]
/inkscape/src/libvpsc/
H A Dvariable.h27 double offset; member in class:vpsc::Variable
37 , offset(0)
43 return block->posn+offset;
/inkscape/src/widgets/
H A Ddash-selector.h35 void set_dash(int ndash, double *dash, double offset);
36 void get_dash(int *ndash, double **dash, double *offset);
63 * Callback for offset adjustment changing
90 Glib::RefPtr<Gtk::Adjustment> offset; member in class:SPDashSelector
92 Gtk::Adjustment *offset; member in class:SPDashSelector
H A Ddash-selector.cpp66 offset = Gtk::Adjustment::create(0.0, 0.0, 10.0, 0.1, 1.0, 0.0);
68 offset = new Gtk::Adjustment(0.0, 0.0, 10.0, 0.1, 1.0, 0.0);
70 offset->signal_value_changed().connect(sigc::mem_fun(*this, &SPDashSelector::offset_value_changed));
72 Inkscape::UI::Widget::SpinButton *sb = new Inkscape::UI::Widget::SpinButton(offset, 0.1, 2);
74 Inkscape::UI::Widget::SpinButton *sb = new Inkscape::UI::Widget::SpinButton(*offset, 0.1, 2);
76 sb->set_tooltip_text(_("Pattern offset"));
103 delete offset;
195 this->offset->set_value(o);
207 this->offset->set_value(o); // what does this do????
227 *off = offset
[all...]
/inkscape/src/2geom/
H A Dcirculator.h116 difference_type offset=( _pos - _first + n ); local
118 if ( offset < 0 ) {
120 offset += ( ( -offset / range ) + 1 ) * range;
121 } else if ( offset >= range ) {
122 offset %= range;
124 return _first + offset;
/inkscape/src/extension/internal/
H A Dbluredge.cpp83 double offset = (width / (float)(steps - 1) * (float)i) - (width / 2.0); local
95 if (offset < 0.0) {
97 offset *= -1.0;
98 prefs->setDoubleUnit("/options/defaultoffsetwidth/value", offset, "px");
100 } else if (offset > 0.0) {
101 prefs->setDoubleUnit("/options/defaultoffsetwidth/value", offset, "px");
/inkscape/share/extensions/
H A Dnicechart.py175 self.OptionParser.add_option("-O", "--bar-offset", action="store",
182 self.OptionParser.add_option("-o", "--text-offset", action="store",
186 self.OptionParser.add_option("", "--heading-offset", action="store",
331 # offset of the description in stacked-bar-charts:
353 # iterate all values, use offset to draw the bars in different places
354 offset = 0
376 shadow.set('x', str(width/2 + offset + 1))
381 shadow.set('y', str(width/2 + offset + 1))
394 rect.set('x', str(width/2 + offset))
399 rect.set('y', str(width/2 + offset))
[all...]
H A Dtriangle.py66 def v_add( (x1,y1),(x2,y2) ):#add an offset to coordinates
73 def draw_tri_from_3_sides(s_a, s_b, s_c, offset, width, parent): #draw a triangle from three sides (with a given offset
84 offset = ( offset[0]-offx , offset[1]-offy ) #add the centre of the triangle to the offset
86 draw_SVG_tri(a, b, c , offset, width, 'Triangle', parent)
125 offset = computePointInNode(list(self.view_center), self.current_layer) #the offset requir
[all...]
H A Dprinting_marks.py253 offset = self.unittouu(str(self.options.crop_offset) + \
260 if bt < offset : bmt = 0
261 else : bmt = bt - offset
262 if bb < offset : bmb = 0
263 else : bmb = bb - offset
264 if bl < offset : bml = 0
265 else : bml = bl - offset
266 if br < offset : bmr = 0
267 else : bmr = br - offset
270 offset_left = self.area_x1 - offset
[all...]
H A Dsimplepath.py29 offset = 0
35 m = delim.match(d, offset)
37 offset = m.end()
38 if offset >= length:
40 m = command.match(d, offset)
42 yield [d[offset:m.end()], True]
43 offset = m.end()
45 m = parameter.match(d, offset)
47 yield [d[offset:m.end()], False]
48 offset
[all...]
/inkscape/src/2geom/numeric/
H A Dvector.h371 ConstVectorView(const base_type & _vector, size_t n, size_t offset = 0)
372 : m_vector_view( gsl_vector_const_subvector(_vector.get_gsl_vector(), offset, n) )
378 ConstVectorView(const base_type & _vector, size_t n, size_t offset , size_t stride)
379 : m_vector_view( gsl_vector_const_subvector_with_stride(_vector.get_gsl_vector(), offset, stride, n) )
385 ConstVectorView(const double* _vector, size_t n, size_t offset = 0)
386 : m_vector_view( gsl_vector_const_view_array(_vector + offset, n) )
392 ConstVectorView(const double* _vector, size_t n, size_t offset, size_t stride) argument
393 : m_vector_view( gsl_vector_const_view_array_with_stride(_vector + offset, stride, n) )
444 VectorView(base_type & _vector, size_t n, size_t offset = 0, size_t stride = 1)
450 = gsl_vector_subvector(_vector.get_gsl_vector(), offset,
[all...]
/inkscape/src/live_effects/parameter/
H A Dpowerstrokepointarray.cpp83 double offset = dot(position - pwd2_in.valueAt(t), normal.valueAt(t)); local
84 _vector[i] = Geom::Point(t, offset);
165 double offset = dot(s - pwd2.valueAt(t), n.valueAt(t)); local
166 _pparam->_vector.at(_index) = Geom::Point(t, offset);
191 void PowerStrokePointArrayParamKnotHolderEntity::knot_set_offset(Geom::Point offset) argument
193 _pparam->_vector.at(_index) = Geom::Point(offset.x(), offset.y() / 2);
246 Geom::Point offset = Geom::Point(_pparam->_vector.at(_index).x(), _pparam->_vector.at(_index).y() * 2); local
247 Inkscape::UI::Dialogs::PowerstrokePropertiesDialog::showDialog(this->desktop, offset, this);
/inkscape/src/filters/
H A Dcomponenttransfer-funcnode.h38 double offset; member in class:SPFeFuncNode

Completed in 76 milliseconds

12345