Graphics Path Object.
More...
#include <cgraphicspath.h>
|
|
CGradient * | createGradient (double color1Start, double color2Start, const CColor &color1, const CColor &color2) |
| creates a new gradient object, you must release it with forget() when you're done with it More...
|
|
|
void | addArc (const CRect &rect, double startAngle, double endAngle, bool clockwise) |
| add an arc to the path. More...
|
|
void | addEllipse (const CRect &rect) |
| add an ellipse to the path. More...
|
|
void | addRect (const CRect &rect) |
| add a rectangle to the path. More...
|
|
void | addPath (const CGraphicsPath &path, CGraphicsTransform *transformation=nullptr) |
| add another path to the path. More...
|
|
void | addLine (const CPoint &to) |
| add a line to the path. More...
|
|
void | addBezierCurve (const CPoint &control1, const CPoint &control2, const CPoint &end) |
| add a bezier curve to the path. More...
|
|
void | beginSubpath (const CPoint &start) |
| begin a new subpath. More...
|
|
void | closeSubpath () |
| close a subpath. More...
|
|
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) |
|
|
bool | hitTest (const CPoint &p, bool evenOddFilled=false, CGraphicsTransform *transform=nullptr) |
|
| ReferenceCounted ()=default |
|
virtual | ~ReferenceCounted () noexcept=default |
|
| ReferenceCounted (const ReferenceCounted &) |
|
ReferenceCounted & | operator= (const ReferenceCounted &) |
|
void | forget () override |
| decrease refcount and delete object if refcount == 0 More...
|
|
void | remember () override |
| increase refcount More...
|
|
virtual int32_t | getNbReference () const |
| get refcount More...
|
|
◆ ElementList
◆ CGraphicsPath()
◆ ~CGraphicsPath()
◆ addArc()
void addArc |
( |
const CRect & |
rect, |
|
|
double |
startAngle, |
|
|
double |
endAngle, |
|
|
bool |
clockwise |
|
) |
| |
add an arc to the path.
Begins a new subpath if no elements were added before.
◆ addBezierCurve() [1/2]
◆ addBezierCurve() [2/2]
void addBezierCurve |
( |
const CPoint & |
control1, |
|
|
const CPoint & |
control2, |
|
|
const CPoint & |
end |
|
) |
| |
add a bezier curve to the path.
A subpath must begin before
◆ addEllipse()
void addEllipse |
( |
const CRect & |
rect | ) |
|
add an ellipse to the path.
Begins a new subpath if no elements were added before.
◆ addLine() [1/2]
◆ addLine() [2/2]
void addLine |
( |
const CPoint & |
to | ) |
|
add a line to the path.
A subpath must begin before
◆ addPath()
add another path to the path.
Begins a new subpath if no elements were added before.
◆ addRect()
void addRect |
( |
const CRect & |
rect | ) |
|
add a rectangle to the path.
Begins a new subpath if no elements were added before.
◆ addRoundRect()
void addRoundRect |
( |
const CRect & |
size, |
|
|
CCoord |
radius |
|
) |
| |
◆ beginSubpath() [1/2]
◆ beginSubpath() [2/2]
void beginSubpath |
( |
const CPoint & |
start | ) |
|
◆ closeSubpath()
close a subpath.
A straight line will be added from the current point to the start point.
◆ createGradient()
CGradient * createGradient |
( |
double |
color1Start, |
|
|
double |
color2Start, |
|
|
const CColor & |
color1, |
|
|
const CColor & |
color2 |
|
) |
| |
creates a new gradient object, you must release it with forget() when you're done with it
- Parameters
-
color1Start | value between zero and one which defines the normalized start offset for color1 |
color2Start | value between zero and one which defines the normalized start offset for color2 |
color1 | the first color of the gradient |
color2 | the second color of the gradient |
- Returns
- a new gradient object
◆ dirty()
◆ ensurePlatformGraphicsPathValid()
bool ensurePlatformGraphicsPathValid |
( |
PlatformGraphicsPathFillMode |
fillMode | ) |
|
|
protected |
◆ getBoundingBox()
◆ getCurrentPosition()
◆ getPlatformPath()
◆ hitTest()
◆ makePlatformGraphicsPath()
void makePlatformGraphicsPath |
( |
PlatformGraphicsPathFillMode |
fillMode | ) |
|
|
protected |
◆ elements
◆ factory
◆ path
The documentation for this class was generated from the following files:
- cgraphicspath.h
- cgraphicspath.cpp