Detailed Description

The base of SVG text tags.

Inheritance diagram for Svg.SVGTextContentElement:
Svg.SVGGraphicsElement Svg.SVGElement Dom.Element Css.IRenderableNode Dom.Node Dom.EventTarget Dom.IParentNode Dom.IEventTarget Svg.SVGTextElement Svg.SVGTextPathElement Svg.SVGTextPositioningElement Svg.SVGAltGlyphElement Svg.SVGTRefElement Svg.SVGTSpanElement

Public Member Functions

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...
 
override string ToString ()
 

Protected Attributes

Css.ValueSet _x = new Css.ValueSet()
 
Css.ValueSet _y = new Css.ValueSet()
 
Css.ValueSet _dx = new Css.ValueSet()
 
Css.ValueSet _dy = new Css.ValueSet()
 
Css.Value _textLength = Css.Value.Empty
 
Css.Value _lengthAdjust = Css.Value.Empty
 

Properties

static TextureNode BlackFill [get]
 Text fills black by default. This is the fill handler. Initiated when first required. More...
 
virtual Css.ValueSet X [get, set]
 Gets or sets the x. More...
 
virtual Css.ValueSet Y [get, set]
 Gets or sets the y. More...
 
virtual Css.Value TextLength [get, set]
 Gets or sets the dX. More...
 
virtual Css.Value LengthAdjust [get, set]
 Gets or sets the dX. More...
 
virtual Css.Value LetterSpacing [get, set]
 Specifies spacing behavior between words. More...
 
virtual Css.Value WordSpacing [get, set]
 Specifies spacing behavior between words. More...
 
override TextureNode Fill [get]
 Gets or sets the fill. More...
 
virtual Css.ValueSet Dx [get, set]
 Gets or sets the dX. More...
 
virtual Css.ValueSet Dy [get, set]
 Gets or sets the dY. More...
 
virtual string Text [get, set]
 The text to be rendered. More...
 
virtual string Rotate [get, set]
 
override BoxRegion Bounds [get]
 Gets the bounds of the element. More...
 

Private Attributes

float[] _rotations
 

Static Private Attributes

static TextureNode _blackFill =null
 Text fills black by default. This is the fill handler. Initiated when first required. 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...
 
- Public Attributes inherited from Svg.SVGElement
ElementStyle Style
 This elements style. 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)
 
virtual bool PushTransforms (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...
 
- 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...
 

Member Function Documentation

override bool Svg.SVGTextContentElement.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.

Reimplemented in Svg.SVGTRefElement, and Svg.SVGTextPathElement.

override string Svg.SVGTextContentElement.ToString ( )
inline

Member Data Documentation

TextureNode Svg.SVGTextContentElement._blackFill =null
staticprivate

Text fills black by default. This is the fill handler. Initiated when first required.

Css.ValueSet Svg.SVGTextContentElement._dx = new Css.ValueSet()
protected
Css.ValueSet Svg.SVGTextContentElement._dy = new Css.ValueSet()
protected
Css.Value Svg.SVGTextContentElement._lengthAdjust = Css.Value.Empty
protected
float [] Svg.SVGTextContentElement._rotations
private
Css.Value Svg.SVGTextContentElement._textLength = Css.Value.Empty
protected
Css.ValueSet Svg.SVGTextContentElement._x = new Css.ValueSet()
protected
Css.ValueSet Svg.SVGTextContentElement._y = new Css.ValueSet()
protected

Property Documentation

TextureNode Svg.SVGTextContentElement.BlackFill
staticget

Text fills black by default. This is the fill handler. Initiated when first required.

override BoxRegion Svg.SVGTextContentElement.Bounds
get

Gets the bounds of the element.

The bounds.

virtual Css.ValueSet Svg.SVGTextContentElement.Dx
getset

Gets or sets the dX.

The dX.

virtual Css.ValueSet Svg.SVGTextContentElement.Dy
getset

Gets or sets the dY.

The dY.

override TextureNode Svg.SVGTextContentElement.Fill
get

Gets or sets the fill.

Unlike other SvgGraphicsElements, SvgText has a default fill of black rather than transparent.

The fill.

virtual Css.Value Svg.SVGTextContentElement.LengthAdjust
getset

Gets or sets the dX.

The dX.

virtual Css.Value Svg.SVGTextContentElement.LetterSpacing
getset

Specifies spacing behavior between words.

virtual string Svg.SVGTextContentElement.Rotate
getset
virtual string Svg.SVGTextContentElement.Text
getset

The text to be rendered.

virtual Css.Value Svg.SVGTextContentElement.TextLength
getset

Gets or sets the dX.

The dX.

virtual Css.Value Svg.SVGTextContentElement.WordSpacing
getset

Specifies spacing behavior between words.

virtual Css.ValueSet Svg.SVGTextContentElement.X
getset

Gets or sets the x.

The x.

virtual Css.ValueSet Svg.SVGTextContentElement.Y
getset

Gets or sets the y.

The y.