PathElement Class Reference

#include <Pt/Gfx/Path.h>

Read-only view of a path element.

Public Member Functions

Path::ElementType type () const
 Returns the element type.
 
std::size_t size () const
 Returns the number of points stored in the element.
 
const PointFposition () const
 Returns the current path position before the element.
 
const PointFpoint (std::size_t n) const
 Returns one point of the element.
 
void flatten (Polygon &points, double tolerance=0.25) const
 Flattens the element into polygon points.