Graphics Path Object.
More...
|
| virtual bool | isTypeOf (IdStringPtr s) const |
| |
| virtual CBaseObject * | newCopy () const |
| |
| virtual void | beforeDelete () |
| |
|
| 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 More...
|
| |
|
| 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=0) |
| |
| 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) |
| |
|
| virtual bool | hitTest (const CPoint &p, bool evenOddFilled=false, CGraphicsTransform *transform=0)=0 |
| |
|
| virtual CPoint | getCurrentPosition ()=0 |
| |
| virtual CRect | getBoundingBox ()=0 |
| |
|
| virtual void | forget () |
| | decrease refcount and delete object if refcount == 0 More...
|
| |
| virtual void | remember () |
| | increase refcount More...
|
| |
| virtual int32_t | getNbReference () const |
| | get refcount More...
|
| |
|
| virtual CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
| |
| void addArc |
( |
const CRect & |
rect, |
|
|
double |
startAngle, |
|
|
double |
endAngle, |
|
|
bool |
clockwise |
|
) |
| |
|
virtual |
add an arc to the path. Begins a new subpath if no elements were added before.
| void addBezierCurve |
( |
const CPoint & |
control1, |
|
|
const CPoint & |
control2, |
|
|
const CPoint & |
end |
|
) |
| |
|
virtual |
add a bezier curve to the path. A subpath must begin before
| void addEllipse |
( |
const CRect & |
rect | ) |
|
|
virtual |
add an ellipse to the path. Begins a new subpath if no elements were added before.
| void addLine |
( |
const CPoint & |
to | ) |
|
|
virtual |
add a line to the path. A subpath must begin before
add another path to the path. Begins a new subpath if no elements were added before.
| void addRect |
( |
const CRect & |
rect | ) |
|
|
virtual |
add a rectangle to the path. Begins a new subpath if no elements were added before.
| void addRoundRect |
( |
const CRect & |
size, |
|
|
CCoord |
radius |
|
) |
| |
| virtual void beforeDelete |
( |
| ) |
|
|
inlinevirtualinherited |
| void beginSubpath |
( |
const CPoint & |
start | ) |
|
|
virtual |
close a subpath. A straight line will be added from the current point to the start point.
| virtual CGradient* createGradient |
( |
double |
color1Start, |
|
|
double |
color2Start, |
|
|
const CColor & |
color1, |
|
|
const CColor & |
color2 |
|
) |
| |
|
pure virtual |
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
platform object should be released
decrease refcount and delete object if refcount == 0
| virtual CRect getBoundingBox |
( |
| ) |
|
|
pure virtual |
| virtual CPoint getCurrentPosition |
( |
| ) |
|
|
pure virtual |
| virtual int32_t getNbReference |
( |
| ) |
const |
|
inlinevirtualinherited |
Reimplemented in CView, GenericStringListDataBrowserSource, CDataBrowser, CViewContainer, CRockerSwitch, CScrollView, CAnimationSplashScreen, UIDescriptionViewSwitchController, CRowColumnView, CShadowViewContainer, CTooltipSupport, and CScrollbar.
| virtual void remember |
( |
| ) |
|
|
inlinevirtualinherited |
The documentation for this class was generated from the following files:
- cgraphicspath.h
- cgraphicspath.cpp