Searched refs:anchor (Results 1 - 25 of 56) sorted by relevance

123

/inkscape/src/ui/
H A Ddraw-anchor.cpp16 #include "ui/draw-anchor.h"
30 * Creates an anchor object and initializes it.
57 * Destroys the anchor's canvas item and frees the anchor object.
59 SPDrawAnchor *sp_draw_anchor_destroy(SPDrawAnchor *anchor) argument
61 if (anchor->curve) {
62 anchor->curve->unref();
64 if (anchor->ctrl) {
65 sp_canvas_item_destroy(anchor->ctrl);
67 g_free(anchor);
75 sp_draw_anchor_test(SPDrawAnchor *anchor, Geom::Point w, bool activate) argument
[all...]
H A Ddraw-anchor.h23 /// The drawing anchor.
37 SPDrawAnchor *sp_draw_anchor_destroy(SPDrawAnchor *anchor);
38 SPDrawAnchor *sp_draw_anchor_test(SPDrawAnchor *anchor, Geom::Point w, bool activate);
H A Dshape-editor.cpp135 Inkscape::GC::anchor(repr);
/inkscape/src/
H A Dgc-anchored.h35 * you. You do not need to anchor it a second time.
43 * @see Inkscape::GC::anchor
49 void anchor() const;
58 Anchored() : _anchor(NULL) { anchor(); } // initial refcount of one
74 void _free_anchor(Anchor *anchor) const;
93 static R &anchor(R &r) { function in namespace:Inkscape::GC
94 static_cast<Anchored const &>(const_cast<R const &>(r)).anchor();
111 static R *anchor(R *r) { function in namespace:Inkscape::GC
112 static_cast<Anchored const *>(const_cast<R const *>(r))->anchor();
H A Dgc-anchored.cpp44 : BaseAnchorEvent(object, 1, Util::share_static_string("gc-anchor"))
61 void Anchored::_free_anchor(Anchored::Anchor *anchor) const {
62 delete anchor;
65 void Anchored::anchor() const { function in class:Inkscape::GC::Anchored
H A Dseltrans-handles.h48 SPAnchorType anchor; member in struct:SPSelTransHandle
H A Dmessage-context.cpp21 GC::anchor(_stack);
H A Dknot.h57 SPAnchorType anchor; /**< Anchor. */ member in class:SPKnot
/inkscape/src/ui/tool/
H A Dselectable-control-point.cpp26 SelectableControlPoint::SelectableControlPoint(SPDesktop *d, Geom::Point const &initial_pos, SPAnchorType anchor, argument
30 ControlPoint(d, initial_pos, anchor, type, cset, group),
36 SelectableControlPoint::SelectableControlPoint(SPDesktop *d, Geom::Point const &initial_pos, SPAnchorType anchor, argument
40 ControlPoint(d, initial_pos, anchor, pixbuf, cset, group),
H A Dselectable-control-point.h35 SelectableControlPoint(SPDesktop *d, Geom::Point const &initial_pos, SPAnchorType anchor,
40 SelectableControlPoint(SPDesktop *d, Geom::Point const &initial_pos, SPAnchorType anchor,
H A Dcontrol-point.h229 * @param anchor Where is the control point rendered relative to its desktop coordinates
234 ControlPoint(SPDesktop *d, Geom::Point const &initial_pos, SPAnchorType anchor,
243 * @param anchor Where is the control point rendered relative to its desktop coordinates
248 ControlPoint(SPDesktop *d, Geom::Point const &initial_pos, SPAnchorType anchor,
324 void _setAnchor(SPAnchorType anchor);
H A Dcontrol-point.cpp66 ControlPoint::ControlPoint(SPDesktop *d, Geom::Point const &initial_pos, SPAnchorType anchor, argument
79 "anchor", (SPAnchorType) anchor, "size", (gdouble) pixbuf->get_width(),
88 ControlPoint::ControlPoint(SPDesktop *d, Geom::Point const &initial_pos, SPAnchorType anchor, argument
101 "anchor", anchor,
181 g_object_get(_canvas_item, "anchor", &ret, NULL);
204 void ControlPoint::_setAnchor(SPAnchorType anchor) argument
206 g_object_set(_canvas_item, "anchor", anchor, NUL
[all...]
H A Dtransform-handle-set.h102 TransformHandle(TransformHandleSet &th, SPAnchorType anchor, Glib::RefPtr<Gdk::Pixbuf> pb);
/inkscape/src/ui/tools/
H A Dpencil-tool.cpp26 #include "ui/draw-anchor.h"
168 /* Test whether we hit any anchor. */
169 SPDrawAnchor *anchor = spdc_test_inside(this, button_w); local
193 if (anchor) {
194 p = anchor->dp;
195 this->overwrite_curve = anchor->curve;
202 // anchor, which is handled by the sibling branch above)
212 this->sa = anchor;
250 /* Test whether we hit any anchor. */
251 SPDrawAnchor *anchor local
351 SPDrawAnchor *anchor = spdc_test_inside(this, Geom::Point(revent.x, revent.y)); local
[all...]
H A Dpen-tool.cpp32 #include "ui/draw-anchor.h"
236 this->ea = NULL; // unset end anchor if set (otherwise crashes)
377 //Test whether we hit any anchor.
378 SPDrawAnchor * const anchor = spdc_test_inside(this, event_w); local
382 if( anchor && anchor == this->sa && this->green_curve->is_empty()){
453 // Set start anchor
455 this->sa = anchor;
456 if(anchor){
459 if (anchor
588 SPDrawAnchor *anchor = spdc_test_inside(this, event_w); local
736 SPDrawAnchor *anchor = spdc_test_inside(this, event_w); local
[all...]
/inkscape/src/ui/dialog/
H A Dpolar-arrange-tab.cpp219 * Returns the selected anchor point in document coordinates. If anchor
225 static Geom::Point getAnchorPoint(int anchor, SPItem *item) argument
231 switch(anchor)
250 switch(anchor)
270 if(anchor == 9)
283 * Moves an SPItem to a given location, the location is based on the given anchor point.
284 * @param anchor 0 to 8 are the various bounding box points like follows:
292 static void moveToPoint(int anchor, SPItem *item, Geom::Point p) argument
294 sp_item_move_rel(item, Geom::Translate(p - getAnchorPoint(anchor, ite
366 int anchor = 9; local
[all...]
H A Dalign-and-distribute.cpp253 anchor = kBegin * bbox.min()[orientation] + kEnd * bbox.max()[orientation];
259 item(rhs.item), anchor(rhs.anchor), bbox(rhs.bbox)
265 return (a.anchor < b.anchor);
355 //overall anchor span
356 float dist = sorted.back().anchor - sorted.front().anchor;
363 //new anchor position
364 float pos = sorted.front().anchor
[all...]
H A Dknot-properties.cpp191 Inkscape::GC::anchor (desktop);
H A Dlpe-powerstroke-properties.cpp189 Inkscape::GC::anchor (desktop);
/inkscape/share/extensions/
H A Dmeasure.py160 self.OptionParser.add_option("--anchor",
162 dest="anchor", default="start",
247 self.addTextOnPath(self.group, 0, 0, lenstr+' '+self.options.unit, id, self.options.anchor, startOffset, self.options.offset)
249 self.addTextOnPath(self.group, 0, 0, lenstr+' '+self.options.unit+'^2', id, self.options.anchor, startOffset, self.options.offset)
253 anchor = 'middle'
258 anchor = 'middle'
262 anchor = 'start'
264 self.addTextWithTspan(self.group, tx, ty, lenstr+' '+self.options.unit, id, anchor, -int(self.options.angle), self.options.offset + self.options.fontsize/2)
266 self.addTextWithTspan(self.group, tx, ty, lenstr+' '+self.options.unit+'^2', id, anchor, -int(self.options.angle), -self.options.offset + self.options.fontsize/2)
290 self.options.anchor
[all...]
/inkscape/src/display/
H A Dsodipodi-ctrl.h39 SPAnchorType anchor; member in struct:SPCtrl
H A Dsodipodi-ctrl.cpp52 ARG_ANCHOR, g_param_spec_int ("anchor", "anchor", "Anchor", 0, G_MAXINT, SP_ANCHOR_CENTER, (GParamFlags) G_PARAM_READWRITE));
91 ctrl->anchor = (SPAnchorType) g_value_get_int(value);
147 g_value_set_int(value, ctrl->anchor);
185 ctrl->anchor = SP_ANCHOR_CENTER;
241 switch (ctrl->anchor) {
260 switch (ctrl->anchor) {
/inkscape/src/ui/view/
H A Dview-widget.cpp71 Inkscape::GC::anchor(view);
/inkscape/share/extensions/test/
H A Dinkweb-debug.js319 "text-anchor:middle; text-align:center",
/inkscape/src/extension/
H A Ddependency.cpp58 Inkscape::GC::anchor(_repr);

Completed in 45 milliseconds

123