Detailed Description

The parent SVG tag.

Inheritance diagram for Svg.SVGSVGElement:
Svg.SVGElement Dom.Element Css.IRenderableNode Dom.Node Dom.EventTarget Dom.IParentNode Dom.IEventTarget

Public Member Functions

override void BuildFilter (RenderContext renderer)
 
override bool OnAttributeChange (string property)
 Called on an instance of this handler when an attribute on the element it's attached to changes. It's also called when the tag is being loaded. More...
 
- Public Member Functions inherited from Svg.SVGElement
 SVGElement ()
 
void WentOffScreen ()
 Called when this element goes offscreen. More...
 
void OnRender (Renderman renderer)
 Called during a global render event on all elements. This knows exactly where the element is on screen. More...
 
void GetWidthBounds (out float min, out float max)
 Part of shrink-to-fit. Computes the maximum and minimum possible width for an element. More...
 
Element querySelector (string selector)
 Gets the first element which matches the given selector. More...
 
HTMLCollection querySelectorAll (string selector)
 Gets all child elements with the given tag. More...
 
HTMLCollection querySelectorAll (string selector, bool one)
 Gets all child elements with the given tag. More...
 
void querySelectorAll (Selector[] selectors, INodeList results, CssEvent e, bool one)
 Gets all child elements with the given tag. More...
 
virtual void OnComputeBox (Renderman renderer, Css.LayoutBox box, ref bool widthUndefined, ref bool heightUndefined)
 Called during the box compute process. Useful if your element has clever dimensions, such as the img tag or words. More...
 
void FontLoaded (DynamicFont font)
 Called when a font-face is ready. More...
 
float GetFloatAttribute (string property, float dflt)
 Gets the value of the given property as a float. More...
 
SVGElement TryResolveHref ()
 Finds the element by ID stored in this elements href attribute. More...
 
float GetDecimal (Css.CssProperty property)
 Resolves a float value. More...
 
int GetInt (Css.CssProperty property)
 Resolves an integer from the computed style. More...
 
virtual VectorPath GetPath (SVGElement context, RenderContext renderer)
 Gets the path this tag represents. Note that it can potentially be a clipping path. More...
 
- Public Member Functions inherited from Dom.Element
virtual void OnChildrenLoaded ()
 Called when this elements children are fully loaded. More...
 
virtual void OnTagLoaded ()
 Called when the tag is instanced and the element plus its attributes and kids have been fully parsed. More...
 
Element GetParentByTagName (string tag)
 Gets a parent element by tag name. More...
 
virtual bool OnDrag (PowerUI.DragEvent e)
 Called repeatedly when this element is being dragged. More...
 
virtual int SetLexerMode (bool last, HtmlLexer lexer)
 When the given lexer resets, this is called. More...
 
override Node cloneNode (bool deep)
 Clones this node. More...
 
virtual bool OnLexerCloseNode (HtmlLexer lexer, int mode)
 Called when a close tag of this element has been created and is being added to the given lexer. Note that this method must not use 'this'. It is most often called as if it was a static method. It's not a static method so it can use inheritence and, as a result, be easily used on the element objects on the current open element stack. More...
 
void before (Node node)
 Inserts a node before this element. More...
 
void after (Node node)
 Inserts an element after this element. More...
 
void before (string html)
 Inserts html before this element. More...
 
void after (string html)
 Inserts html after this element. More...
 
override string ToString ()
 
void insertAdjacentHTML (string positionName, string html)
 Inserts HTML at the given position name. More...
 
void appendTextContent (string text)
 Appends the given literal text to the content of this element. This is good for preventing html injection as the text will be taken literally. More...
 
void append (string html)
 Appends the given html text to the content of this element. More...
 
void append (Element child)
 Appends the given child element to the content of this element. More...
 
void appendInnerHTML (string text)
 Appends the given html text to the content of this element. More...
 
void insertInnerHTML (int index, string text)
 Inserts HTML into this element at the given index. Pushes any elements at the given index over. More...
 
void prepend (Element child)
 Prepends the given child element to the content of this element, adding it as the first child. More...
 
void prepend (string text)
 Prepends the given html text to the content of this element, adding it as the first child. More...
 
void prependInnerHTML (string text)
 Prepends the given html text to the content of this element, adding it as the first child. More...
 
override bool isEqualNode (Node other)
 Tests whether two nodes are the same by attribute comparison. More...
 
void GetPropertyString (System.Text.StringBuilder result)
 A string built from the properties only. More...
 
override void ToString (System.Text.StringBuilder result)
 Gets a string representation of this element. More...
 
bool isChild (Node childElement)
 Checks if the given element is a child of this element. More...
 
void AddToAttributeLookups ()
 Adds this element to all fast lookups. More...
 
void AddToAttributeLookup (string attrib, AttributeLookup lookup)
 Adds this element to the given attribute lookup. More...
 
AttributeNode getAttributeNodeNS (string ns, string name)
 Get the value of an attribute by name. Generally element[name] is better. More...
 
void setAttributeNodeNS (AttributeNode node)
 Set the named attribute. element[name] is generally better. More...
 
AttributeNode getAttributeNode (string name)
 Get the value of an attribute by name. Generally element[name] is better. More...
 
bool hasAttributeNode (AttributeNode node)
 Does this element have the named attribute? element[name] is generally better. More...
 
void setAttributeNode (AttributeNode node)
 Set the named attribute. element[name] is generally better. More...
 
void removeAttributeNode (AttributeNode node)
 Remove the named attribute. element[name] is generally better. More...
 
string getAttributeNS (string ns, string name)
 Get the value of an attribute by name. Generally element[name] is better. More...
 
bool hasAttributeNS (string ns, string name)
 Does this element have the named attribute? element[name] is generally better. More...
 
void setAttributeNS (string ns, string name, string value)
 Set the named attribute. element[name] is generally better. More...
 
void removeAttributeNS (string ns, string name)
 Remove the named attribute. element[name] is generally better. More...
 
string getAttribute (string name)
 Get the value of an attribute by name. Generally element[name] is better. More...
 
bool hasAttribute (string name)
 Does this element have the named attribute? element[name] is generally better. More...
 
void setAttribute (string name, string value)
 Set the named attribute. element[name] is generally better. More...
 
void removeAttribute (string name)
 Remove the named attribute. element[name] is generally better. More...
 
void cue ()
 Cues the element to advance any paused PowerSlide slides. More...
 
bool matches (string selectorText)
 True if this element matches the given selector. More...
 
- Public Member Functions inherited from Dom.Node
HtmlElement getByTagName (string tag)
 Casts getElementByTagName to a HtmlElement for you (exists because of SVG and MathML). More...
 
HtmlElement getById (string id)
 Casts getElementById to a HtmlElement for you (exists because of SVG and MathML). More...
 
HtmlElement getByAttribute (string property, string value)
 Casts getElementByAttribute to a HtmlElement for you (exists because of SVG and MathML). More...
 
bool isBefore (Node other)
 True if this element is before the other one in the DOM. More...
 
void insertAfter (Node toInsert, Node after)
 Inserts the given element after the given one. More...
 
Node prependChild (Node child)
 Prepends the given element as a child. More...
 
Node insertBefore (Node toInsert, Node before)
 Inserts the given element before the given one. More...
 
Node replaceChild (Node with, Node element)
 Replaces the given child with another. More...
 
Node appendChild (Node element)
 Adds the given element to the children of this element. More...
 
Node moveChild (Node toMove, int index)
 Moves the given node to the given new index. More...
 
Node removeChildAt (int index)
 Removes the child at the given index from this element. More...
 
Node removeChild (Node element)
 Removes the given child from this element. More...
 
bool hasChildNodes ()
 True if this element has any child nodes. More...
 
virtual bool OnLexerAddNode (HtmlLexer lexer, int mode)
 Called when this node has been created and is being added to the given lexer. Closely related to Element.OnLexerCloseNode. More...
 
void normalize ()
 Normalises this node. More...
 
bool isSupported (string feature, string version)
 Is the given feature supported? More...
 
bool hasAttributes ()
 Does this node have any attributes? More...
 
ushort compareDocumentPosition (Node other)
 Compare document position (two elements only here). More...
 
bool isParentOf (Node node)
 True if this is a parent of the given node. More...
 
bool contains (Node node)
 True if the given node is a descendant of this or not. More...
 
string lookupNamespaceURI (string nsUri)
 Looks up a namespace URI, returning the prefix. More...
 
HTMLCollection getElementsByClassName (string className)
 Gets all elements with the given class name(s), seperated by spaces. May include this element or any of it's kids. More...
 
Element getElementByTagNameNS (string namespaceURI, string tag)
 Gets the first child element with the given tag. More...
 
HTMLCollection getElementsByTagNameNS (string namespaceURI, string tag)
 Gets all child elements with the given tag. More...
 
HTMLCollection getElementsByTagNameNS (MLNamespace ns, string tag, bool stopWithOne)
 Gets all child elements with the given tag. More...
 
bool getElementsByTagNameNS (MLNamespace ns, string tag, bool stopWithOne, INodeList results)
 Gets all child elements with the given tag. More...
 
Element getElementByTagName (string tag)
 Gets the first child element with the given tag. More...
 
HTMLCollection getElementsByTagName (string tag)
 Gets all child elements with the given tag. More...
 
HTMLCollection getElementsByTagName (string tag, bool stopWithOne)
 Gets all child elements with the given tag. More...
 
bool getElementsByTagName (string tag, bool stopWithOne, INodeList results)
 Gets all child elements with the given tag. More...
 
Element getElementByName (string name)
 Gets the first child element with the given name. More...
 
HTMLCollection getElementsByName (string name)
 Gets all child elements with the given name. More...
 
HTMLCollection getElementsByName (string name, bool stopWithOne)
 Gets all child elements with the given name. More...
 
bool getElementsByName (string name, bool stopWithOne, INodeList results)
 Gets all child elements with the given name. More...
 
Element getElementById (string value)
 Gets a child element by ID. More...
 
NodeList getElementsByAttribute (string property, string value)
 Gets all elements with the given attribute. May include this element or any of it's kids. More...
 
NodeList getElementsWithProperty (string property, string value)
 Gets all elements with the given attribute. May include this element or any of it's kids. More...
 
void getElementsByAttribute (string property, string value, INodeList results)
 Gets all elements with the given property. May include this element or any of it's kids. More...
 
void getElementsByClassName (string[] classes, INodeList results)
 Gets all elements with the given class name(s). May include this element or any of it's kids. More...
 
Element getElementByAttribute (string property, string value)
 Gets an element with the given attribute. May be this element or any of it's kids. More...
 
bool isSameNode (Node other)
 Tests whether two nodes are the same, that is if they reference the same object More...
 
bool isDefaultNamespace (string nsUri)
 Tests if this elements default namespace is the same as the given one. More...
 
string lookupPrefix (string prefix)
 Looks up a namespace prefix, returning the namespace URI. More...
 
Node remove ()
 Removes this node from the tree it belongs to. More...
 
override string ToString ()
 
Node insertChild (int index, Node child)
 Inserts a child into this element at the given index. Pushes any elements at the given index over. More...
 
Node replaceWith (Node element)
 Replaces this element with the given element. More...
 
- Public Member Functions inherited from Dom.EventTarget
void ClearEvents ()
 Clears all events on this document. More...
 
bool dispatchEvent (Event e)
 Runs an event of the given name. More...
 
void addEventListener (string name, EventListener listener)
 Adds an event listener to this document. More...
 
void addEventListener (string name, EventListener listener, bool useCapture)
 Adds an event listener to this document. More...
 
void removeEventListener (string name, object evtHandlerInternal)
 Removes an event listener from this document. More...
 
void addEventListener (string name, AnimationEventDelegate method)
 
void addEventListener (string name, AudioProcessingEventDelegate method)
 
void addEventListener (string name, BeforeInputEventDelegate method)
 
void addEventListener (string name, BeforeUnloadEventDelegate method)
 
void addEventListener (string name, BlobEventDelegate method)
 
void addEventListener (string name, ClipboardEventDelegate method)
 
void addEventListener (string name, CloseEventDelegate method)
 
void addEventListener (string name, CompositionEventDelegate method)
 
void addEventListener (string name, CustomEventDelegate method)
 
void addEventListener (string name, CSSFontFaceLoadEventDelegate method)
 
void addEventListener (string name, DeviceLightEventDelegate method)
 
void addEventListener (string name, DeviceMotionEventDelegate method)
 
void addEventListener (string name, DeviceOrientationEventDelegate method)
 
void addEventListener (string name, DeviceProximityEventDelegate method)
 
void addEventListener (string name, DomEventDelegate method)
 
void addEventListener (string name, DOMTransactionEventDelegate method)
 
void addEventListener (string name, DragEventDelegate method)
 
void addEventListener (string name, EditingBeforeInputEventDelegate method)
 
void addEventListener (string name, ErrorEventDelegate method)
 
void addEventListener (string name, FetchEventDelegate method)
 
void addEventListener (string name, FocusEventDelegate method)
 
void addEventListener (string name, GamepadEventDelegate method)
 
void addEventListener (string name, HashChangeEventDelegate method)
 
void addEventListener (string name, IDBVersionChangeEventDelegate method)
 
void addEventListener (string name, InputEventDelegate method)
 
void addEventListener (string name, KeyboardEventDelegate method)
 
void addEventListener (string name, MediaStreamEventDelegate method)
 
void addEventListener (string name, MessageEventDelegate method)
 
void addEventListener (string name, MouseEventDelegate method)
 
void addEventListener (string name, MutationEventDelegate method)
 
void addEventListener (string name, OfflineAudioCompletionEventDelegate method)
 
void addEventListener (string name, PageTransitionEventDelegate method)
 
void addEventListener (string name, PointerEventDelegate method)
 
void addEventListener (string name, PopStateEventDelegate method)
 
void addEventListener (string name, ProgressEventDelegate method)
 
void addEventListener (string name, RelatedEventDelegate method)
 
void addEventListener (string name, RTCDataChannelEventDelegate method)
 
void addEventListener (string name, RTCIdentityErrorEventDelegate method)
 
void addEventListener (string name, RTCIdentityEventDelegate method)
 
void addEventListener (string name, RTCPeerConnectionIceEventDelegate method)
 
void addEventListener (string name, SensorEventDelegate method)
 
void addEventListener (string name, StorageEventDelegate method)
 
void addEventListener (string name, TextEventDelegate method)
 
void addEventListener (string name, TimeEventDelegate method)
 
void addEventListener (string name, TouchEventDelegate method)
 
void addEventListener (string name, TrackEventDelegate method)
 
void addEventListener (string name, TransitionEventDelegate method)
 
void addEventListener (string name, UIEventDelegate method)
 
void addEventListener (string name, UserProximityEventDelegate method)
 
void addEventListener (string name, WebGLContextEventDelegate method)
 
void addEventListener (string name, WheelEventDelegate method)
 
void addEventListener (string name, Nitro.DynamicMethod< Nitro.Void > listener)
 
void addEventListener (string name, Nitro.DynamicMethod< Nitro.Void > listener, bool capture)
 
void addEventListener (string name, ContextEventDelegate method)
 
void addEventListener (string name, SlideEventDelegate method)
 
void addEventListener (string name, PowerUI.SpriteEventDelegate method)
 
void addEventListener (string name, SVGEventDelegate method)
 Adds an event listener to this document. More...
 
void addEventListener (string name, SVGZoomEventDelegate method)
 
- Public Member Functions inherited from Css.IRenderableNode
void OnComputeBox (Renderman renderer, LayoutBox box, ref bool widthUndefined, ref bool heightUndefined)
 Called whilst a CSS box is being recomputed. More...
 

Public Attributes

Overflow Overflow =Overflow.Auto
 How this SVG deals with overflow. More...
 
AspectRatio AspectRatio =new AspectRatio()
 The aspect of the SVG. More...
 
BoxRegion Viewbox
 The viewbox of the SVG. More...
 
- Public Attributes inherited from Svg.SVGElement
ElementStyle Style
 This elements style. More...
 
- Public Attributes inherited from Dom.Element
string Tag
 The raw tag as a string. e.g. "div","span" etc in html. More...
 
Node ParentNode
 Internal use only. The parent of this element. Use PowerUI.HtmlElement.parentNode instead. More...
 
bool IsRebuildingChildren
 This is true if the childNodes are being rebuilt. True for a tiny amount of time, but prevents collisions with the renderer thread. More...
 
- Public Attributes inherited from Dom.Node
MLNamespace Namespace
 The namespace this node belongs to. More...
 
Dictionary< string, string > Properties =new Dictionary<string,string>()
 The set of attributes on this tag. An attribute is e.g. style="display:none;". More...
 
const ushort ELEMENT_NODE =1
 
const ushort ATTRIBUTE_NODE =2
 
const ushort TEXT_NODE =3
 
const ushort CDATA_SECTION_NODE =4
 
const ushort ENTITY_REFERENCE_NODE =5
 
const ushort ENTITY_NODE =6
 
const ushort PROCESSING_INSTRUCTION_NODE =7
 
const ushort COMMENT_NODE =8
 
const ushort DOCUMENT_NODE =9
 
const ushort DOCUMENT_TYPE_NODE =10
 
const ushort DOCUMENT_FRAGMENT_NODE =11
 
const ushort DOCUMENT_NOTATION_NODE =12
 
const ushort DOCUMENT_POSITION_DISCONNECTED =1
 
const ushort DOCUMENT_POSITION_PRECEDING =2
 
const ushort DOCUMENT_POSITION_FOLLOWING =4
 
const ushort DOCUMENT_POSITION_CONTAINS =8
 
const ushort DOCUMENT_POSITION_CONTAINED_BY =16
 
const ushort DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC =32
 
- Public Attributes inherited from Dom.EventTarget
EventsSet Events
 A set of events for this document. See addEventListener. More...
 

Protected Member Functions

override bool PushTransforms (RenderContext renderer)
 Applies the required transforms to RenderContext. More...
 
- Protected Member Functions inherited from Svg.SVGElement
void BuildChildren (RenderContext renderer)
 Renders the child nodes of this tag. More...
 
virtual void PopTransforms (RenderContext renderer)
 
bool BuildStrokeMarkers (VectorPath path, RenderContext renderer)
 Renders a stroke with markers. More...
 
virtual void SetClip (RenderContext renderer)
 Sets the clipping region of the specified RenderContext. More...
 
VectorPath GetPaths (Node parent, RenderContext renderer)
 Adds all child paths together. More...
 
void AddChildPaths (Node parent, VectorPath bakeInto, RenderContext renderer, Matrix4x4 extraTransform, bool applyExtra)
 Adds all child paths together. More...
 
virtual void ResetClip (RenderContext renderer)
 Resets the clipping region of the specified RenderContext back to where it was before the SetClip method was called. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Dom.Node
static bool PropertiesEqual (Dictionary< string, string > a, Dictionary< string, string > b)
 True if two args sets are equal. More...
 
- Package Functions inherited from Svg.SVGElement
virtual void BuildFill (VectorPath path, RenderContext renderer)
 Renders the fill of the SvgVisualElement to the specified RenderContext More...
 
virtual bool BuildStroke (VectorPath path, RenderContext renderer)
 Renders the stroke of the SvgVisualElement to the specified RenderContext More...
 
- Package Attributes inherited from Dom.Element
bool SelfClosing
 True if this tag closes itself and doesn't need an end ("/div" for example) tag. More...
 
- Static Package Attributes inherited from Dom.EventTarget
static DispatchStack PooledStack
 The current head of the pooled dispatched stacks. More...
 
- Properties inherited from Svg.SVGElement
static Loonim.TextureNode TransparentFill [get]
 Objects fill transparent by default. This is the fill handler. Initiated when first required. More...
 
ComputedStyle ComputedStyle [get]
 This nodes computed style. More...
 
RenderableData RenderData [get]
 This nodes render data. More...
 
override ElementStyle style [get]
 This elements style. More...
 
Css.ComputedStyle computedStyle [get]
 Gets the computed style of this element. More...
 
SVGFontElement ParentFont [get]
 The parent font element, if there is one. More...
 
BoxRegion GroupBounds [get]
 The combined bounds of the child nodes. More...
 
virtual BoxRegion Bounds [get]
 The bounds of this element. More...
 
virtual Loonim.TextureNode Fill [get, set]
 Gets or sets the fill. More...
 
virtual Loonim.TextureNode Stroke [get, set]
 
int Visibility [get]
 The VisibilityMode of this element. More...
 
SVGElement ownerSVGElement [get]
 The parent svg element. More...
 
virtual Css.Value ClipPath [get, set]
 Gets the associated SvgClipPath if one has been specified. More...
 
string ClipRule [get, set]
 Gets or sets the algorithm which is to be used to determine the clipping region. More...
 
virtual Css.Value Filter [get, set]
 Gets the associated SvgClipPath if one has been specified. More...
 
virtual float Opacity [get]
 Element opacity. More...
 
float FillOpacity [get]
 Fill opacity. More...
 
float StrokeOpacity [get]
 Stroke opacity. More...
 
float StrokeWidth [get]
 Stroke width. More...
 
int StrokeLineCap [get]
 Stroke line cap. More...
 
int StrokeLineJoin [get]
 Stroke line join. More...
 
Css.Value StrokeDashOffset [get]
 Stroke dash offset. More...
 
Css.Value StrokeDashArray [get]
 Stroke dash array. More...
 
float StrokeMiterLimit [get]
 Stroke-miterlimit. More...
 
string FillRule [get]
 Fill rule (e.g. nonzero). More...
 

Member Function Documentation

override void Svg.SVGSVGElement.BuildFilter ( RenderContext  renderer)
inlinevirtual

Reimplemented from Svg.SVGElement.

override bool Svg.SVGSVGElement.OnAttributeChange ( string  attribute)
inlinevirtual

Called on an instance of this handler when an attribute on the element it's attached to changes. It's also called when the tag is being loaded.

Parameters
attributeThe attribute that changed.

Reimplemented from Svg.SVGElement.

override bool Svg.SVGSVGElement.PushTransforms ( RenderContext  renderer)
inlineprotectedvirtual

Applies the required transforms to RenderContext.

Parameters
rendererThe RenderContext to be transformed.

Reimplemented from Svg.SVGElement.

Member Data Documentation

AspectRatio Svg.SVGSVGElement.AspectRatio =new AspectRatio()

The aspect of the SVG.

Overflow Svg.SVGSVGElement.Overflow =Overflow.Auto

How this SVG deals with overflow.

BoxRegion Svg.SVGSVGElement.Viewbox

The viewbox of the SVG.