Detailed Description

An SVG image. Note that the ordinary HTML node system loads the actual nodes of the SVG.

Public Member Functions

 SVG (ReflowDocument hostDocument)
 Creates a new blank SVG. More...
 
 SVG (string xml)
 Loads an SVG from the given XML string. More...
 
SVGElement getElementById (string id)
 Gets an element with the given ID. More...
 
RenderContext Render (int width, int height)
 Renders this SVG at the given size. Get the Texture property on the object returned. Note that you can resize it too - call SetSize. More...
 

Static Public Member Functions

static implicit operator SVGFormat (SVG svg)
 Implicitly converts an SVG into an SVGFormat object. More...
 

Public Attributes

ReflowDocument document
 The internal document for this SVG. You can use all the ordinary DOM commands on this. More...
 

Properties

int Width [get]
 The SVG's preferred width. More...
 
int Height [get]
 The SVG's preferred height. More...
 
SVGSVGElement svgElement [get]
 The >svg< element. More...
 
SVGSVGElement svgHandler [get]
 The SVG tag handler for the svgElement. More...
 
string title [get, set]
 The title of this SVG. More...
 
string description [get]
 The description of this SVG. More...
 
string innerSVG [get, set]
 The innerSVG of this SVG. More...
 

Private Attributes

SVGSVGElement _SVG
 The cached svg element. More...
 

Constructor & Destructor Documentation

Svg.SVG.SVG ( ReflowDocument  hostDocument)
inline

Creates a new blank SVG.

Svg.SVG.SVG ( string  xml)
inline

Loads an SVG from the given XML string.

Member Function Documentation

SVGElement Svg.SVG.getElementById ( string  id)
inline

Gets an element with the given ID.

static implicit Svg.SVG.operator SVGFormat ( SVG  svg)
inlinestatic

Implicitly converts an SVG into an SVGFormat object.

RenderContext Svg.SVG.Render ( int  width,
int  height 
)
inline

Renders this SVG at the given size. Get the Texture property on the object returned. Note that you can resize it too - call SetSize.

Member Data Documentation

SVGSVGElement Svg.SVG._SVG
private

The cached svg element.

ReflowDocument Svg.SVG.document

The internal document for this SVG. You can use all the ordinary DOM commands on this.

Property Documentation

string Svg.SVG.description
get

The description of this SVG.

int Svg.SVG.Height
get

The SVG's preferred height.

string Svg.SVG.innerSVG
getset

The innerSVG of this SVG.

SVGSVGElement Svg.SVG.svgElement
get

The >svg< element.

SVGSVGElement Svg.SVG.svgHandler
get

The SVG tag handler for the svgElement.

string Svg.SVG.title
getset

The title of this SVG.

int Svg.SVG.Width
get

The SVG's preferred width.