Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
PathDescrClose Struct Reference

Close Path instruction. More...

#include <path-description.h>

Inheritance diagram for PathDescrClose:
PathDescr

Public Member Functions

 PathDescrClose ()
 
void dumpSVG (Inkscape::SVGOStringStream &s, Geom::Point const &last) const override
 A virtual function that derived classes will implement.
 
PathDescrclone () const override
 A virtual function that derived classes will implement.
 
- Public Member Functions inherited from PathDescr
 PathDescr ()
 
 PathDescr (int f)
 
virtual ~PathDescr ()=default
 
int getType () const
 
void setType (int t)
 
virtual void dump (std::ostream &) const
 A virtual function that derived classes will implement.
 

Public Attributes

Geom::Point p
 
- Public Attributes inherited from PathDescr
int flags
 
int associated
 
double tSt
 
double tEn
 

Detailed Description

Close Path instruction.

Definition at line 189 of file path-description.h.

Constructor & Destructor Documentation

◆ PathDescrClose()

PathDescrClose::PathDescrClose ( )
inline

Definition at line 191 of file path-description.h.

Referenced by clone().

Member Function Documentation

◆ clone()

PathDescr * PathDescrClose::clone ( ) const
overridevirtual

A virtual function that derived classes will implement.

Returns a newly allocated copy of the path description.

Implements PathDescr.

Definition at line 109 of file path-description.cpp.

References PathDescrClose().

◆ dumpSVG()

void PathDescrClose::dumpSVG ( Inkscape::SVGOStringStream ,
Geom::Point const &   
) const
overridevirtual

A virtual function that derived classes will implement.

Dumps the SVG path d attribute for this path description.

Parameters
sThe stream to put the SVG description in.
lastThe last point before this path description. This is needed for the computation of SVG descriptions of instructions such as Cubic and Arc.

Reimplemented from PathDescr.

Definition at line 104 of file path-description.cpp.

Member Data Documentation

◆ p

Geom::Point PathDescrClose::p

Useless since close instruction needs no point.

Definition at line 199 of file path-description.h.

Referenced by Path::ConvertForcedToMoveTo().


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