Searched refs:guide (Results 1 - 18 of 18) sorted by relevance

/inkscape/src/
H A Ddesktop-events.cpp47 #include "sp-guide.h"
61 void sp_dt_ruler_snap_new_guide(SPDesktop *desktop, SPCanvasItem *guide, Geom::Point &event_dt, Geom::Point &normal);
90 static SPCanvasItem *guide = NULL; local
160 guide = sp_guideline_new(desktop->guides, NULL, event_dt, normal);
161 sp_guideline_set_color(SP_GUIDELINE(guide), desktop->namedview->guidehicolor);
193 // explicitly show guidelines; if I draw a guide, I want them on
199 sp_dt_ruler_snap_new_guide(desktop, guide, event_dt, normal);
201 sp_guideline_set_normal(SP_GUIDELINE(guide), normal);
202 sp_guideline_set_position(SP_GUIDELINE(guide), event_dt);
221 sp_dt_ruler_snap_new_guide(desktop, guide, event_d
294 SPGuide *guide = SP_GUIDE(data); local
[all...]
H A Dsp-guide.cpp32 #include "sp-guide.h"
35 #include <sp-guide-constraint.h>
82 document->addResource("guide", this);
94 this->document->removeResource("guide", this);
203 Inkscape::XML::Node *repr = xml_doc->createElement("sodipodi:guide");
233 SPGuide *guide= SP_GUIDE(doc->getObjectByRepr(repr)); local
234 return guide;
267 std::set<SPObject *> current = doc->getResourceList("guide");
269 SPGuide* guide = SP_GUIDE(*(current.begin())); local
270 sp_guide_remove(guide);
525 sp_guide_remove(SPGuide *guide) argument
[all...]
H A Dsp-item-notify-moveto.cpp7 #include <sp-guide.h>
15 * Called by sp_guide_moveto to indicate that the guide line corresponding to g has been moved, and
62 * guide send notifications in order of increasing importance.
H A Dsp-guide.h20 #include "sp-guide-attachment.h"
98 void sp_guide_remove(SPGuide *guide);
H A Dsp-namedview.cpp33 #include "sp-guide.h"
55 static void sp_namedview_show_single_guide(SPGuide* guide, bool show);
56 static void sp_namedview_lock_single_guide(SPGuide* guide, bool show);
226 this->readAttr( "inkscape:snap-from-guide" );
954 static void sp_namedview_show_single_guide(SPGuide* guide, bool show) argument
957 guide->showSPGuide();
959 guide->hideSPGuide();
963 static void sp_namedview_lock_single_guide(SPGuide* guide, bool locked) argument
965 guide->set_locked(locked, true);
1100 sp_repr_set_boolean(this->getRepr(), "inkscape:guide
1179 SPGuide &guide = *(*it); local
[all...]
H A Dsnap.h21 #include "guide-snapper.h"
312 * Wrapper method to make snapping of the guide origin a bit easier (i.e. simplifies the calling code).
316 * @param p Current position of the point on the guide that is to be snapped; will be overwritten by the position of the snap target if snapping has occurred.
317 * @param origin_or_vector Data used for tangential and perpendicular snapping. When rotating a guide the origin of the rotation is specified here, whereas when
318 * dragging a guide its vector is specified here
320 * @param freeze_angle If true (in which case origin is false), then the vector specified in origin_or_vector will not be touched, i.e. the guide will
321 * in all circumstances keep its angle. Otherwise the vector in origin_or_vector can be updated, meaning that the guide might take on the angle of a curve that
327 * Wrapper method to make snapping of the guide origin a bit easier (i.e. simplifies the calling code).
331 * @param p Current position of the point on the guide that is to be snapped; will be overwritten by the position of the snap target if snapping has occurred.
332 * @param guideline The guide tha
336 Inkscape::GuideSnapper guide; ///< guide snapper member in class:SnapManager
[all...]
H A Dsnap.cpp34 #include "sp-guide.h"
43 guide(this, 0),
58 s.push_back(&guide);
391 g_warning("Dear developer, when snapping guides you shouldn't ask me to freeze the guide's vector when you haven't specified one");
419 origin_or_vector = Geom::rot90(s.getTangent()); // then use it to update the normal of the guide
542 // search for the closest snapped guide line
548 // When freely snapping to a grid/guide/path, only one degree of freedom is eliminated
549 // Therefore we will try get fully constrained by finding an intersection with another grid/guide/path
552 // the grid/guide/path we're snapping to. This snappoint is therefore fully constrained, so there's
565 // search for the closest snapped intersection of a guide wit
[all...]
/inkscape/share/extensions/
H A Dsetup_typography_canvas.py55 guide = inkex.etree.SubElement(namedview, inkex.addNS('guide', 'sodipodi'))
56 guide.set("orientation", orientation)
57 guide.set("position", str(x)+","+str(y))
58 guide.set(inkex.addNS('label', 'inkscape'), label)
H A Dguillotine.py59 This is used to sort the horizontal and vertical guide positions,
82 Returns all guide elements as an iterable collection
86 xpath = self.document.xpath("//sodipodi:guide",
89 guide = {}
92 guide['orientation'] = 'horizontal'
93 guide['position'] = y
94 guides.append(guide)
96 guide['orientation'] = 'vertical'
97 guide['position'] = x
98 guides.append(guide)
[all...]
H A Dempty_dvd_cover.py21 guide = inkex.etree.SubElement(namedview, inkex.addNS('guide', 'sodipodi'))
22 guide.set("orientation", orientation)
23 guide.set("position", str(x)+","+str(y))
25 # guide.set(inkex.addNS('label', 'inkscape'), label)
H A Dsvgfont2layers.py35 guide = inkex.etree.SubElement(namedview, inkex.addNS('guide', 'sodipodi'))
36 guide.set(inkex.addNS('label', 'inkscape'), label)
37 guide.set("orientation", "0,1")
38 guide.set("position", "0,"+str(y))
H A Dlayers2svgfont.py30 guides = namedview.findall(inkex.addNS('guide', 'sodipodi'))
31 for guide in guides:
32 l=guide.get(inkex.addNS('label', 'inkscape'))
34 return int(guide.get("position").split(",")[index])
H A Dperfectboundcover.py132 for node in self.document.xpath('/svg:svg/sodipodi:namedview/sodipodi:guide', namespaces=inkex.NSS):
135 for guide in guides:
136 newguide = inkex.etree.Element(inkex.addNS('guide','sodipodi'))
137 newguide.set("orientation", guide[0])
138 newguide.set("position", "%f" % (guide[1] * 96))
H A Dinkex.py263 guide = etree.SubElement(
265 addNS('guide','sodipodi'), atts)
266 return guide
/inkscape/src/ui/dialog/
H A Dguides.h51 GuidelinePropertiesDialog(SPGuide *guide, SPDesktop *desktop);
56 static void showDialog(SPGuide *guide, SPDesktop *desktop);
H A Dguides.cpp25 #include "sp-guide.h"
45 GuidelinePropertiesDialog::GuidelinePropertiesDialog(SPGuide *guide, SPDesktop *desktop) argument
46 : _desktop(desktop), _guide(guide),
48 _relative_toggle(_("Rela_tive change"), _("Move and/or rotate the guide relative to current settings")),
66 void GuidelinePropertiesDialog::showDialog(SPGuide *guide, SPDesktop *desktop) { argument
67 GuidelinePropertiesDialog dialog(guide, desktop);
139 _("Set guide properties"));
147 _("Delete guide"));
/inkscape/src/libcola/
H A Dgradient_projection.h30 guide(NULL),
38 void* guide; member in class:AlignmentConstraint
/inkscape/src/ui/tools/
H A Dmeasure-tool.cpp858 Inkscape::XML::Node *guide; local
859 guide = xml_doc->createElement("sodipodi:guide");
863 guide->setAttribute("position", position.str().c_str() );
864 guide->setAttribute("inkscape:color", "rgb(167,0,255)");
865 guide->setAttribute("inkscape:label", label);
870 guide->setAttribute("orientation", angle_str.str().c_str());
871 namedview->appendChild(guide);
872 Inkscape::GC::release(guide);

Completed in 43 milliseconds