2#ifndef SEEN_SP_OFFSET_H
3#define SEEN_SP_OFFSET_H
16#include <sigc++/sigc++.h>
54 int tag()
const override {
return tag_of<
decltype(*this)>; }
79 void update(
SPCtx *ctx,
unsigned int flags)
override;
85 const char*
typeName()
const override;
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
Two-dimensional point that doubles as a vector.
Storing of snapping preferences.
Interface for refcounted XML nodes.
Typed SVG document implementation.
Base class for visual SVG elements.
Inkscape::XML::Node * repr
Inkscape::XML::Node * write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned flags) override
char * description() const override
bool knotSet
for interactive setting of the radius
void build(SPDocument *document, Inkscape::XML::Node *repr) override
SPUseReference * sourceRef
const char * typeName() const override
The item's type name, not node tag name.
void set_shape() override
sigc::connection _modified_connection
void snappoints(std::vector< Inkscape::SnapCandidatePoint > &p, Inkscape::SnapPreferences const *snapprefs) const override
Inkscape::XML::Node * sourceRepr
the repr associated with that id
sigc::connection _transformed_connection
void update(SPCtx *ctx, unsigned int flags) override
sigc::connection _changed_connection
const char * displayName() const override
The item's type name as a translated human string.
char * original
SVG description of the source path.
void * originalPath
will be a livarot Path, just don't declare it here to please the gcc linker FIXME what?
sigc::connection _delete_connection
Base class for shapes, including <path> element.
static cairo_user_data_key_t key
double sp_offset_distance_to_original(SPOffset *offset, Geom::Point px)
Distance to the original path; that function is called from shape-editor-knotholders to set the radiu...
SPItem * sp_offset_get_source(SPOffset *offset)
void sp_offset_top_point(SPOffset const *offset, Geom::Point *px)
Computes a point on the offset; used to set a "seed" position for the control knot.
Interface for XML documents.