CGfxGeneralPath Class Reference
class CGfxGeneralPath : public CBase
|
Implementation of a path.
Public Member Functions
|
|
~CGfxGeneralPath
()
|
void
|
AppendL
(
CGfxPathIterator
*)
|
TFloatFixPt
|
AreaSize
()
|
CGfxGeneralPath
*
|
CloneL
()
|
void
|
ClosePathL
()
|
TUint8
|
Count
()
|
void
|
Count
(
TUint8
)
|
void
|
CubicToL
(
TFloatFixPt
&,
TFloatFixPt
&,
TFloatFixPt
&,
TFloatFixPt
&,
TFloatFixPt
&,
TFloatFixPt
&,
TBool
)
|
void
|
GetBounds
(const
TGfxAffineTransform
&,
TGfxRectangle2D
&)
|
void
|
GetPathIteratorL
(
TGfxAffineTransform
*,
CGfxPathIterator
*&)
|
void
|
GetPathIteratorL
(
TGfxAffineTransform
*,
TInt
,
CGfxPathIterator
*&)
|
TInt
|
GetSegmentCount
()
|
TReal32
|
GetSegmentParameter
(
TInt
,
TInt
)
|
TInt
|
GetSegmentType
(
TInt
)
|
void
|
HorizonToL
(
TFloatFixPt
&,
TBool
)
|
void
|
IsHorizontalLineOrVertical
(
TInt
,
TBool
&,
TBool
&)
|
void
|
LineToL
(
TFloatFixPt
&,
TFloatFixPt
&,
TBool
)
|
void
|
MoveToL
(
TFloatFixPt
&,
TFloatFixPt
&,
TBool
)
|
CGfxGeneralPath
*
|
NewL
()
|
CGfxGeneralPath
*
|
NewLC
()
|
unsigned char *
|
PathSegmentTypeArray
()
|
void
|
PathSegmentTypeArray
(unsigned char *)
|
TFloatFixPt
*
|
PointCoordsArray
()
|
RArray
<
TFloatFixPt
> *
|
PointCoordsArrayAll
()
|
RArray
<
TUint32
> *
|
PointTypeArray
()
|
void
|
QuadToL
(
TFloatFixPt
&,
TFloatFixPt
&,
TFloatFixPt
&,
TFloatFixPt
&,
TBool
)
|
void
|
QuadToLWithNoControlPoint
(
TFloatFixPt
,
TFloatFixPt
)
|
void
|
RemoveLastPathCommand
()
|
void
|
Reset
()
|
void
|
SetPointCoordsArrayL
(
RArray
<
TFloatFixPt
> *)
|
void
|
SetPointCoordsArrayRef
(
RArray
<
TFloatFixPt
> *&)
|
void
|
SetPointTypeArrayL
(
RArray
<
TUint32
> *)
|
void
|
SetPointTypeArrayRef
(
RArray
<
TUint32
> *&)
|
TInt
|
ShapeType
()
|
void
|
ShortCubicToL
(
TFloatFixPt
&,
TFloatFixPt
&,
TFloatFixPt
&,
TFloatFixPt
&,
TBool
)
|
void
|
ShortQuadToL
(
TFloatFixPt
&,
TFloatFixPt
&,
TBool
)
|
void
|
VertToL
(
TFloatFixPt
&,
TBool
)
|
Constructor & Destructor Documentation
CGfxGeneralPath()
CGfxGeneralPath
|
(
|
)
|
[protected]
|
~CGfxGeneralPath()
~CGfxGeneralPath
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AppendL(CGfxPathIterator *)
Append the given points to this path.
AreaSize()
Get the area for this path.
ClosePathL()
Signal end of path to connect starting point to ending point.
ConstructL()
void
|
ConstructL
|
(
|
)
|
[protected]
|
Second phase of construction.
CubicToL(TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool)
Parameters
TFloatFixPt
& aX1
|
: x coordinate for control point 1.
|
TFloatFixPt
& aY1
|
: y coordinate for control point 1.
|
TFloatFixPt
& aX2
|
: x coordinate for control point 2.
|
TFloatFixPt
& aY2
|
: y coordinate for control point 2.
|
TFloatFixPt
& aX3
|
: x coordinate for control point 3.
|
TFloatFixPt
& aY3
|
: y coordinate for control point 3.
|
TBool
aAbsolute
|
: flag to indicate values are absolute or not.
|
GetBounds(const TGfxAffineTransform &, TGfxRectangle2D &)
Get the bounding box for this path.
GetCurveRefPoint(TFloatFixPt &, TFloatFixPt &)
Get the curve reference point for this last curve.
Parameters
TFloatFixPt
& aX
|
: storage for x coordinate of reference point.
|
TFloatFixPt
& aY
|
: storage for y coordinate of reference point.
|
GetPathIteratorL(TGfxAffineTransform *, CGfxPathIterator *&)
Get the iterator for this path.
GetPathIteratorL(TGfxAffineTransform *, TInt, CGfxPathIterator *&)
Get the iterator for this path.
GetSegmentParameter(TInt, TInt)
GetSegmentType(TInt)
TInt
|
GetSegmentType
|
(
|
TInt
|
aSegmentIndex
|
)
|
|
HorizonToL(TFloatFixPt &, TBool)
Add a horizontal line from the current location.
Parameters
TFloatFixPt
& aX
|
: x coordinate for ending point.
|
TBool
aAbsolute
|
: flag to indicate values are absolute or not.
|
IsHorizontalLineOrVertical(TInt, TBool &, TBool &)
void
|
IsHorizontalLineOrVertical
|
(
|
TInt
|
aSegmentIndex,
|
|
TBool
&
|
aHorizontal,
|
|
TBool
&
|
aVertical
|
|
)
|
|
LineToL(TFloatFixPt &, TFloatFixPt &, TBool)
MoveToL(TFloatFixPt &, TFloatFixPt &, TBool)
Start a new sub-path at the given location.
PathSegmentTypeArray()
unsigned char *
|
PathSegmentTypeArray
|
(
|
)
|
|
PathSegmentTypeArray(unsigned char *)
void
|
PathSegmentTypeArray
|
(
|
unsigned char *
|
aSegmentTypeArray
|
)
|
|
Parameters
unsigned char * aSegmentTypeArray
|
|
PointCoordsArray()
Get the pointer to the coordinate array.
PointCoordsArrayAll()
Get the pointer to the type array.
PointTypeArray()
Get the pointer to the type array.
QuadToL(TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool)
Parameters
TFloatFixPt
& aX1
|
: x coordinate for control point 1.
|
TFloatFixPt
& aY1
|
: y coordinate for control point 1.
|
TFloatFixPt
& aX2
|
: x coordinate for control point 2.
|
TFloatFixPt
& aY2
|
: y coordinate for control point 2.
|
TBool
aAbsolute
|
: flag to indicate values are absolute or not.
|
QuadToLWithNoControlPoint(TFloatFixPt, TFloatFixPt)
RemoveLastPathCommand()
void
|
RemoveLastPathCommand
|
(
|
)
|
|
SetPointCoordsArrayL(RArray< TFloatFixPt > *)
Set the pointer to the coordinate array.
SetPointCoordsArrayRef(RArray< TFloatFixPt > *&)
SetPointTypeArrayL(RArray< TUint32 > *)
Set the pointer to the type array.
SetPointTypeArrayRef(RArray< TUint32 > *&)
ShapeType()
TInt
|
ShapeType
|
(
|
)
|
[inline, virtual]
|
ShortCubicToL(TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TFloatFixPt &, TBool)
Add a cubic curve, using the current location as the first control point.
Parameters
TFloatFixPt
& aX2
|
: x coordinate for control point 2.
|
TFloatFixPt
& aY2
|
: y coordinate for control point 2.
|
TFloatFixPt
& aX3
|
: x coordinate for control point 3.
|
TFloatFixPt
& aY3
|
: y coordinate for control point 3.
|
TBool
aAbsolute
|
: flag to indicate values are absolute or not.
|
ShortQuadToL(TFloatFixPt &, TFloatFixPt &, TBool)
Add a quadratic curve, using the current location as the first control point.
Parameters
TFloatFixPt
& aX2
|
: x coordinate for control point 2.
|
TFloatFixPt
& aY2
|
: y coordinate for control point 2.
|
TBool
aAbsolute
|
: flag to indicate values are absolute or not.
|
VertToL(TFloatFixPt &, TBool)
Add a vertical line from the current location.
Parameters
TFloatFixPt
& aY
|
: y coordinate for ending point.
|
TBool
aAbsolute
|
: flag to indicate values are absolute or not.
|
Member Data Documentation
unsigned char * iPathSegmentTypeArray
unsigned char *
|
iPathSegmentTypeArray
|
[protected]
|
RArray< TFloatFixPt > * iPointCoords
RArray< TUint32 > * iPointTypes
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.