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... | |
|
inlinestatic |
Adds a CSS function to the global set. This is generally done automatically, but you can also add one manually if you wish.
cssFunction | The function to add. |
|
inlinestatic |
Attempts to find the named function, returning the global function if it's found.
name | The function to look for. |
|
inlinestatic |
Sets up the global lookup by searching for any classes which inherit from CssFunction.
|
static |
The lookup itself. Matches name (e.g. "rgba") to the function that will process it.