5 #ifndef __cgraphicspath__ 6 #define __cgraphicspath__ 42 virtual void addArc (
const CRect& rect,
double startAngle,
double endAngle,
bool clockwise);
62 inline void addLine (CCoord x, CCoord y)
66 inline void addBezierCurve (CCoord cp1x, CCoord cp1y, CCoord cp2x, CCoord cp2y, CCoord x, CCoord y)
76 void addRoundRect (
const CRect& size, CCoord radius);
90 virtual CPoint getCurrentPosition () = 0;
91 virtual CRect getBoundingBox () = 0;
97 virtual void dirty () = 0;
146 inline void CRect2Rect (
const CRect& rect, CGraphicsPath::Rect& r)
const {r.left = rect.left;r.right = rect.right;r.top = rect.top;r.bottom = rect.bottom;}
147 inline void CPoint2Point (
const CPoint& point, CGraphicsPath::Point& p)
const {p.x = point.x;p.y = point.y;}
150 using ElementList = std::vector<Element>;
151 ElementList elements;
virtual void beginSubpath(const CPoint &start)
Definition: cgraphicspath.cpp:134
Rect structure.
Definition: crect.h:17
virtual void addEllipse(const CRect &rect)
Definition: cgraphicspath.cpp:92
virtual void dirty()=0
platform object should be released
virtual void addRect(const CRect &rect)
Definition: cgraphicspath.cpp:102
virtual void addLine(const CPoint &to)
Definition: cgraphicspath.cpp:112
RGBA Color structure.
Definition: ccolor.h:15
virtual void addArc(const CRect &rect, double startAngle, double endAngle, bool clockwise)
Definition: cgraphicspath.cpp:79
virtual CGradient * createGradient(double color1Start, double color2Start, const CColor &color1, const CColor &color2)=0
creates a new gradient object, you must release it with forget() when you're done with it ...
Graphics Path Object.
Definition: cgraphicspath.h:19
Gradient Object [new in 4.0].
Definition: cgradient.h:19
Definition: customcontrols.cpp:8
virtual void addBezierCurve(const CPoint &control1, const CPoint &control2, const CPoint &end)
Definition: cgraphicspath.cpp:122
Definition: vstguibase.h:247
virtual void addPath(const CGraphicsPath &path, CGraphicsTransform *transformation=nullptr)
Definition: cgraphicspath.cpp:35
virtual void closeSubpath()
Definition: cgraphicspath.cpp:144
Point structure.
Definition: cpoint.h:17