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... | |
|
inline |
Creates a new blank SVG.
|
inline |
Loads an SVG from the given XML string.
|
inline |
Gets an element with the given ID.
|
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.
|
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.
|
get |
The description of this SVG.
|
get |
The SVG's preferred height.
|
getset |
The innerSVG of this SVG.
|
get |
The >svg< element.
|
get |
The SVG tag handler for the svgElement.
|
getset |
The title of this SVG.
|
get |
The SVG's preferred width.