Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
KnotHolderEntity Class Referenceabstract

KnotHolderEntity definition. More...

#include <knot-holder-entity.h>

Inheritance diagram for KnotHolderEntity:
BlurKnotHolderEntity FilterKnotHolderEntity HatchKnotHolderEntity Inkscape::LivePathEffect::FilletChamferKnotHolderEntity Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity LPEKnotHolderEntity PatternKnotHolderEntity HatchKnotHolderEntityAngle HatchKnotHolderEntityScale HatchKnotHolderEntityXY PatternKnotHolderEntityAngle PatternKnotHolderEntityScale PatternKnotHolderEntityXY

Public Member Functions

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_set (Geom::Point const &p, Geom::Point const &origin, unsigned state)=0
 
virtual void knot_grabbed (Geom::Point const &, unsigned)
 
virtual void knot_ungrabbed (Geom::Point const &p, Geom::Point const &origin, unsigned state)=0
 
virtual bool knot_missing () const
 
virtual Geom::Point knot_get () const =0
 
virtual void knot_click (unsigned)
 
virtual bool set_item_clickpos (Geom::Point loc)
 
virtual void on_created ()
 
virtual void update_knot ()
 
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)
 

Public Attributes

SPKnotknot = nullptr
 
SPItemitem = nullptr
 
SPDesktopdesktop = nullptr
 
KnotHolderparent_holder = nullptr
 

Private Attributes

sigc::scoped_connection _mousedown_connection
 
sigc::scoped_connection _moved_connection
 
sigc::scoped_connection _click_connection
 
sigc::scoped_connection _ungrabbed_connection
 

Detailed Description

KnotHolderEntity definition.

Definition at line 43 of file knot-holder-entity.h.

Constructor & Destructor Documentation

◆ ~KnotHolderEntity()

KnotHolderEntity::~KnotHolderEntity ( )
virtual

Definition at line 64 of file knot-holder-entity.cpp.

References knot, and SPKnot::unref().

Member Function Documentation

◆ create()

void KnotHolderEntity::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 
)

◆ knot_click()

virtual void KnotHolderEntity::knot_click ( unsigned  )
inlinevirtual

Definition at line 61 of file knot-holder-entity.h.

◆ knot_get()

◆ knot_grabbed()

virtual void KnotHolderEntity::knot_grabbed ( Geom::Point const &  ,
unsigned   
)
inlinevirtual

Reimplemented in PatternKnotHolderEntityScale.

Definition at line 57 of file knot-holder-entity.h.

◆ knot_missing()

virtual bool KnotHolderEntity::knot_missing ( ) const
inlinevirtual

Reimplemented in PatternKnotHolderEntity, and HatchKnotHolderEntity.

Definition at line 59 of file knot-holder-entity.h.

◆ knot_set()

◆ knot_ungrabbed()

virtual void KnotHolderEntity::knot_ungrabbed ( Geom::Point const &  p,
Geom::Point const &  origin,
unsigned  state 
)
pure virtual

◆ on_created()

virtual void KnotHolderEntity::on_created ( )
inlinevirtual

◆ set_item_clickpos()

virtual bool KnotHolderEntity::set_item_clickpos ( Geom::Point  loc)
inlinevirtual

Reimplemented in PatternKnotHolderEntity.

Definition at line 62 of file knot-holder-entity.h.

◆ snap_knot_position()

◆ snap_knot_position_constrained()

◆ update_knot()

Member Data Documentation

◆ _click_connection

sigc::scoped_connection KnotHolderEntity::_click_connection
private

Definition at line 79 of file knot-holder-entity.h.

Referenced by create().

◆ _mousedown_connection

sigc::scoped_connection KnotHolderEntity::_mousedown_connection
private

Definition at line 77 of file knot-holder-entity.h.

Referenced by create().

◆ _moved_connection

sigc::scoped_connection KnotHolderEntity::_moved_connection
private

Definition at line 78 of file knot-holder-entity.h.

Referenced by create(), and update_knot().

◆ _ungrabbed_connection

sigc::scoped_connection KnotHolderEntity::_ungrabbed_connection
private

Definition at line 80 of file knot-holder-entity.h.

Referenced by create().

◆ desktop

◆ item

◆ knot

◆ parent_holder


The documentation for this class was generated from the following files: