Detailed Description

An SVG specific variant of the css url() function. Standard url() is auto-converted into one of these when it's used by the SVG system.

Inheritance diagram for Css.Functions.SVGUrlFunction:
Css.Functions.UrlFunction Css.CssFunction Css.ValueSet Css.CssUnit Css.Value

Public Member Functions

override ShapeProvider ToShape (SVGElement context, RenderContext renderer, out Css.Value value)
 Gets the shape that this CSS value represents. More...
 
- Public Member Functions inherited from Css.Functions.UrlFunction
 UrlFunction ()
 
override void OnValueReady (CssLexer lexer)
 Called after a value has been loaded from the stream. Functions etc get it too. This is used to, for example, map a value to a faster internal representation. More...
 
override string[] GetNames ()
 The set of all function names that this one will handle. Usually just one. Lowercase. e.g. "rgb", "rgba". More...
 
override string GetText (RenderableData context, CssProperty property)
 If this is a text value, e.g. "auto", the raw text value. More...
 
- Public Member Functions inherited from Css.CssFunction
override string ToString ()
 
- Public Member Functions inherited from Css.ValueSet
 ValueSet ()
 
void Add (Value val)
 Adds the given value to the set. More...
 
 ValueSet (int count)
 
 ValueSet (Value[] s)
 
override void SetRawDecimal (float value)
 Sets a raw decimal value to this object. Used by the animation system. More...
 
override float GetRawDecimal ()
 Obtains the underlying decimal value, if there is one. More...
 
override float GetDecimal (RenderableData context, CssProperty property)
 If this is a decimal, the raw decimal value. This is generally the main output. More...
 
override string GetText (RenderableData context, CssProperty property)
 If this is a text value, e.g. "auto", the raw text value. More...
 
override bool GetBoolean (RenderableData context, CssProperty property)
 If this is a boolean, the raw bool value. More...
 
override string ToString ()
 
override IEnumerator< ValueGetEnumerator ()
 
override bool Equals (Value value)
 Checks if two values are equal. More...
 
Value[] CopyInnerValues ()
 

Protected Member Functions

override Css.Value Clone ()
 Duplicates this value. More...
 

Private Attributes

ShapeProvider _cachedTarget
 

Additional Inherited Members

- Static Public Member Functions inherited from Css.Value
static Css.Value Load (string text)
 
- Public Attributes inherited from Css.Functions.UrlFunction
string Url
 The cached URL. More...
 
StyleSheet Sheet
 The sheet that this originates from. More...
 
- Protected Attributes inherited from Css.Value
ValueType Type_ =ValueType.Null
 The type of value this is. More...
 
- Package Attributes inherited from Css.ValueSet
Value[] Values
 The set of internal values, such as each individual value of padding. More...
 
- Static Package Attributes inherited from Css.Value
static readonly Value Empty =new Units.DecimalUnit(0)
 Represents an empty value. More...
 
- Properties inherited from Css.CssFunction
override bool IsFunction [get]
 
override string Identifier [get]
 

Member Function Documentation

override Css.Value Css.Functions.SVGUrlFunction.Clone ( )
inlineprotectedvirtual

Duplicates this value.

Returns
A duplicated copy of this value. Note that if this value has inner values, they are copied too.

Reimplemented from Css.Functions.UrlFunction.

override ShapeProvider Css.Functions.SVGUrlFunction.ToShape ( SVGElement  context,
RenderContext  renderer,
out Css.Value  value 
)
inlinevirtual

Gets the shape that this CSS value represents.

Reimplemented from Css.Functions.UrlFunction.

Member Data Documentation

ShapeProvider Css.Functions.SVGUrlFunction._cachedTarget
private