Inkscape
Vector Graphics Editor
|
#include <knot-holder-entity.h>
Public Member Functions | |
PatternKnotHolderEntityXY (bool fill) | |
void | on_created () override |
void | update_knot () override |
Geom::Point | knot_get () const override |
void | knot_set (Geom::Point const &p, Geom::Point const &origin, unsigned state) override |
![]() | |
PatternKnotHolderEntity (bool fill) | |
bool | knot_missing () const override |
void | knot_ungrabbed (Geom::Point const &p, Geom::Point const &origin, unsigned state) override |
bool | set_item_clickpos (Geom::Point loc) override |
![]() | |
virtual | ~KnotHolderEntity () |
void | create (SPDesktop *desktop, SPItem *item, KnotHolder *parent, Inkscape::CanvasItemCtrlType type=Inkscape::CANVAS_ITEM_CTRL_TYPE_DEFAULT, Glib::ustring const &name="unknown", char const *tip="", uint32_t color=0xffffff00) |
virtual void | knot_grabbed (Geom::Point const &, unsigned) |
virtual void | knot_click (unsigned) |
Geom::Point | snap_knot_position (Geom::Point const &p, unsigned state) |
Geom::Point | snap_knot_position_constrained (Geom::Point const &p, Inkscape::Snapper::SnapConstraint const &constraint, unsigned state) |
Private Attributes | |
CanvasItemPtr< Inkscape::CanvasItemQuad > | _quad |
Extra visual element to show the pattern editing area. | |
Additional Inherited Members | |
![]() | |
SPKnot * | knot = nullptr |
SPItem * | item = nullptr |
SPDesktop * | desktop = nullptr |
KnotHolder * | parent_holder = nullptr |
![]() | |
SPPattern * | _pattern () const |
Geom::Point | _get_pos (double x, double y, bool transform=true) const |
Returns the position based on the pattern's origin, shifted by the percent x/y of its size. | |
Geom::IntPoint | offset_to_cell (Geom::Point loc) const |
![]() | |
bool | _fill |
true if the entity tracks fill, false for stroke | |
Geom::IntPoint | _cell |
Definition at line 117 of file knot-holder-entity.h.
|
inline |
Definition at line 120 of file knot-holder-entity.h.
|
overridevirtual |
Implements KnotHolderEntity.
Definition at line 222 of file knot-holder-entity.cpp.
References PatternKnotHolderEntity::_get_pos().
Referenced by knot_set().
|
overridevirtual |
Implements KnotHolderEntity.
Definition at line 227 of file knot-holder-entity.cpp.
References PatternKnotHolderEntity::_fill, SPItem::adjust_pattern(), KnotHolderEntity::item, knot_get(), origin, SPObject::requestDisplayUpdate(), KnotHolderEntity::snap_knot_position(), TRANSFORM_FILL, and TRANSFORM_STROKE.
|
overridevirtual |
Reimplemented from PatternKnotHolderEntity.
Definition at line 201 of file knot-holder-entity.cpp.
References _quad, KnotHolderEntity::desktop, SPDesktop::getCanvasControls(), and PatternKnotHolderEntity::on_created().
|
overridevirtual |
Reimplemented from PatternKnotHolderEntity.
Definition at line 213 of file knot-holder-entity.cpp.
References PatternKnotHolderEntity::_get_pos(), _quad, SPItem::i2dt_affine(), KnotHolderEntity::item, and PatternKnotHolderEntity::update_knot().
|
private |
Extra visual element to show the pattern editing area.
Definition at line 128 of file knot-holder-entity.h.
Referenced by on_created(), and update_knot().