CartoType API
Public Member Functions
CartoType::CGState Class Reference

#include <cartotype_svg.h>

List of all members.

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::TDimensionParamDimensionParam () const
TResult SetTextParam (const Sax::MAttributes &aAttributes)
TPaint Paint (const MString &aName)

Detailed Description

The state held by a g element or temporarily while rendering a shape.


Member Function Documentation

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::DrawPath ( const MPath aPath)

Fill and stroke aPath.

TResult CGState::DrawText ( const MString aText)

Draw aText using the current text parameters.

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.


The documentation for this class was generated from the following files: