|
CartoType API
|
#include <cartotype_svg.h>
Public Member Functions | |
| CGState (CGraphicsContext &aGc, const Svg::TDimensionParam &aDimensionParam) | |
| CGState (const CGState &aGState) | |
| void | SetOwner (const CSvgState &aOwner) |
| TResult | Set (const Sax::MAttributes &aAttributes, TFixed aCx, TFixed aCy, TFixed aRx, TFixed aRy) |
| TResult | DrawPath (const MPath &aPath) |
| TResult | DrawText (const MString &aText) |
| TResult | ApplyViewBox (TFixed aToX, TFixed aToY, TFixed aToW, TFixed aToH, TFixed aFromX, TFixed aFromY, TFixed aFromW, TFixed aFromH) |
| void | TransformViewBox (const TTransform &aTransform) |
| const Svg::TDimensionParam & | DimensionParam () const |
| TResult | SetTextParam (const Sax::MAttributes &aAttributes) |
| TPaint | Paint (const MString &aName) |
The state held by a g element or temporarily while rendering a shape.
| TResult CGState::ApplyViewBox | ( | TFixed | aToX, |
| TFixed | aToY, | ||
| TFixed | aToW, | ||
| TFixed | aToH, | ||
| TFixed | aFromX, | ||
| TFixed | aFromY, | ||
| TFixed | aFromW, | ||
| TFixed | aFromH | ||
| ) |
Apply a transform, by concatenating it to the current transform, to convert a viewbox given by aFromX, etc. to a viewport given by aToX etc.
| TResult CGState::Set | ( | const Sax::MAttributes & | aAttributes, |
| TFixed | aCx, | ||
| TFixed | aCy, | ||
| TFixed | aRx, | ||
| TFixed | aRy | ||
| ) |
Set a <g> group or shape element's state from the supplied attributes. Any rotations are performed about (aCx,aCy) unless an explicit centre of rotation is supplied using rotate(angle,cx,cy). The x and y radius aRx and aRy are supplied for setting gradient parameters.
| TResult CGState::SetTextParam | ( | const Sax::MAttributes & | aAttributes | ) |
Set the current text parameters from the supplied attributes.
| void CGState::TransformViewBox | ( | const TTransform & | aTransform | ) |
Concatenate a transform to the viewbox transform, mainly to rotate it.
1.7.5.1