ASPiK SDK
VSTGUI::Cairo::Path Class Reference
Inheritance diagram for VSTGUI::Cairo::Path:
VSTGUI::CGraphicsPath VSTGUI::ReferenceCounted< T > VSTGUI::IReference

Public Member Functions

 Path (const ContextHandle &cr) noexcept
 
cairo_path_t * getPath (const ContextHandle &handle, const CGraphicsTransform *alignTransform=nullptr)
 
CGradientcreateGradient (double color1Start, double color2Start, const CColor &color1, const CColor &color2) override
 creates a new gradient object, you must release it with forget() when you're done with it More...
 
bool hitTest (const CPoint &p, bool evenOddFilled=false, CGraphicsTransform *transform=0) override
 
CPoint getCurrentPosition () override
 
CRect getBoundingBox () override
 
void dirty () override
 platform object should be released
 
- Public Member Functions inherited from VSTGUI::CGraphicsPath
virtual void addArc (const CRect &rect, double startAngle, double endAngle, bool clockwise)
 
virtual void addEllipse (const CRect &rect)
 
virtual void addRect (const CRect &rect)
 
virtual void addPath (const CGraphicsPath &path, CGraphicsTransform *transformation=nullptr)
 
virtual void addLine (const CPoint &to)
 
virtual void addBezierCurve (const CPoint &control1, const CPoint &control2, const CPoint &end)
 
virtual void beginSubpath (const CPoint &start)
 
virtual void closeSubpath ()
 
void beginSubpath (CCoord x, CCoord y)
 
void addLine (CCoord x, CCoord y)
 
void addBezierCurve (CCoord cp1x, CCoord cp1y, CCoord cp2x, CCoord cp2y, CCoord x, CCoord y)
 
void addRoundRect (const CRect &size, CCoord radius)
 
- Public Member Functions inherited from VSTGUI::ReferenceCounted< T >
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
void forget () override
 decrease refcount and delete object if refcount == 0
 
void remember () override
 increase refcount
 
virtual int32_t getNbReference () const
 get refcount
 
virtual void beforeDelete ()
 

Additional Inherited Members

- Protected Types inherited from VSTGUI::CGraphicsPath
using ElementList = std::vector< Element >
 
- Protected Attributes inherited from VSTGUI::CGraphicsPath
ElementList elements
 

Member Function Documentation

◆ createGradient()

CGradient * VSTGUI::Cairo::Path::createGradient ( double  color1Start,
double  color2Start,
const CColor color1,
const CColor color2 
)
overridevirtual

creates a new gradient object, you must release it with forget() when you're done with it

Parameters
color1Startvalue between zero and one which defines the normalized start offset for color1
color2Startvalue between zero and one which defines the normalized start offset for color2
color1the first color of the gradient
color2the second color of the gradient
Returns
a new gradient object

Implements VSTGUI::CGraphicsPath.


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