Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
PatternKnotHolderEntityXY Class Reference

#include <knot-holder-entity.h>

Inheritance diagram for PatternKnotHolderEntityXY:
PatternKnotHolderEntity KnotHolderEntity

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
 
- Public Member Functions inherited from PatternKnotHolderEntity
 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
 
- Public Member Functions inherited from KnotHolderEntity
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

- Public Attributes inherited from KnotHolderEntity
SPKnotknot = nullptr
 
SPItemitem = nullptr
 
SPDesktopdesktop = nullptr
 
KnotHolderparent_holder = nullptr
 
- Protected Member Functions inherited from PatternKnotHolderEntity
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
 
- Protected Attributes inherited from PatternKnotHolderEntity
bool _fill
 true if the entity tracks fill, false for stroke
 
Geom::IntPoint _cell
 

Detailed Description

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

Constructor & Destructor Documentation

◆ PatternKnotHolderEntityXY()

PatternKnotHolderEntityXY::PatternKnotHolderEntityXY ( bool  fill)
inline

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

Member Function Documentation

◆ knot_get()

Geom::Point PatternKnotHolderEntityXY::knot_get ( ) const
overridevirtual

Implements KnotHolderEntity.

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

References PatternKnotHolderEntity::_get_pos().

Referenced by knot_set().

◆ knot_set()

void PatternKnotHolderEntityXY::knot_set ( Geom::Point const &  p,
Geom::Point const &  origin,
unsigned  state 
)
overridevirtual

◆ on_created()

void PatternKnotHolderEntityXY::on_created ( )
overridevirtual

◆ update_knot()

void PatternKnotHolderEntityXY::update_knot ( )
overridevirtual

Member Data Documentation

◆ _quad

CanvasItemPtr<Inkscape::CanvasItemQuad> PatternKnotHolderEntityXY::_quad
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().


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