Detailed Description

Provides shapes to the CSS system. Primarily used by SVG.

Inheritance diagram for Svg.ShapeProvider:
Svg.CircleProvider Svg.EllipseProvider Svg.LineProvider Svg.PolygonProvider Svg.RectangleProvider

Public Member Functions

void ClearCache ()
 Clears the cached path. More...
 
void SetPath (VectorPath path)
 Sets the cached path. More...
 
virtual VectorPath GetPath (SVGElement context, RenderContext ctx)
 Gets or rebuilds the cached path. More...
 
virtual ScreenRegion GetRegion (SVGElement context, RenderContext ctx)
 Gets the defined shape as a region. Allows optimisations for rectangles. More...
 

Protected Attributes

VectorPath _Path
 The cached path. More...
 

Properties

VectorPath Path [get]
 The cached path. More...
 

Member Function Documentation

void Svg.ShapeProvider.ClearCache ( )
inline

Clears the cached path.

virtual VectorPath Svg.ShapeProvider.GetPath ( SVGElement  context,
RenderContext  ctx 
)
inlinevirtual

Gets or rebuilds the cached path.

Reimplemented in Svg.RectangleProvider, Svg.LineProvider, Svg.EllipseProvider, Svg.CircleProvider, and Svg.PolygonProvider.

virtual ScreenRegion Svg.ShapeProvider.GetRegion ( SVGElement  context,
RenderContext  ctx 
)
inlinevirtual

Gets the defined shape as a region. Allows optimisations for rectangles.

void Svg.ShapeProvider.SetPath ( VectorPath  path)
inline

Sets the cached path.

Member Data Documentation

VectorPath Svg.ShapeProvider._Path
protected

The cached path.

Property Documentation

VectorPath Svg.ShapeProvider.Path
get

The cached path.