PowerUI.Css.CssFunctions Class Reference

Detailed Description

A global lookup of function name to function. E.g. rgba() is a CSS function. Css functions are instanced globally and mapped to the names they use. Note that functions are not instanced per element.

Static Public Member Functions

static void Setup (Type[] allTypes)
 Sets up the global lookup by searching for any classes which inherit from CssFunction. More...
 
static bool Add (CssFunction cssFunction)
 Adds a CSS function to the global set. This is generally done automatically, but you can also add one manually if you wish. More...
 
static CssFunction Get (string name)
 Attempts to find the named function, returning the global function if it's found. More...
 

Static Public Attributes

static Dictionary< string,
CssFunction
Functions
 The lookup itself. Matches name (e.g. "rgba") to the function that will process it. More...
 

Member Function Documentation

static bool PowerUI.Css.CssFunctions.Add ( CssFunction  cssFunction)
inlinestatic

Adds a CSS function to the global set. This is generally done automatically, but you can also add one manually if you wish.

Parameters
cssFunctionThe function to add.
Returns
True if adding it was successful.
static CssFunction PowerUI.Css.CssFunctions.Get ( string  name)
inlinestatic

Attempts to find the named function, returning the global function if it's found.

Parameters
nameThe function to look for.
Returns
The global CssFunction if the function was found; Null otherwise.
static void PowerUI.Css.CssFunctions.Setup ( Type[]  allTypes)
inlinestatic

Sets up the global lookup by searching for any classes which inherit from CssFunction.

Member Data Documentation

Dictionary<string,CssFunction> PowerUI.Css.CssFunctions.Functions
static

The lookup itself. Matches name (e.g. "rgba") to the function that will process it.