Detailed Description

Used for e.g. Emoji. Holds all CharacterProvider instances. When a character is not found in the font, PowerUI checks with these character providers to see if any of them can provide it instead. Add custom providers if you have your own set of images to add.

Static Public Member Functions

static void Setup ()
 Adds the default character providers. Called by UI.Start. More...
 
static void Add (CharacterProvider provider)
 Adds the given character provider to the set of Providers. More...
 
static int InsertIndex (CharacterProvider provider)
 Finds the index where the given provider should be inserted at. More...
 
static int SearchFor (int code)
 Searches for the most suitable index for the given character code. More...
 
static CharacterProvider FindFor (int code)
 Attempts to find the character provider for a character of the given charcode. More...
 
static Glyph Find (int charcode)
 Attempts to find and apply an image to the given character. More...
 

Static Public Attributes

static bool FixHeight
 True if emoji should render at a fixed (original) height. Otherwise it will render at a best-guess fontsize height. More...
 
static string EmojiPath ="resources://Characters"
 The path where emoji chars are found. Any ordinary URL, but must be set before you call UI.Start. More...
 
static List< CharacterProviderProviders
 The set of all available character providers. More...
 

Static Private Attributes

static bool Started
 True when this has been Setup. More...
 

Member Function Documentation

static void PowerUI.CharacterProviders.Add ( CharacterProvider  provider)
inlinestatic

Adds the given character provider to the set of Providers.

Parameters
providerThe provider to add.
static Glyph PowerUI.CharacterProviders.Find ( int  charcode)
inlinestatic

Attempts to find and apply an image to the given character.

Parameters
characterThe on screen character to attempt to find an image for.
static CharacterProvider PowerUI.CharacterProviders.FindFor ( int  code)
inlinestatic

Attempts to find the character provider for a character of the given charcode.

Parameters
codeThe charcode of the character to look for.
Returns
A provider for the character, if found.
static int PowerUI.CharacterProviders.InsertIndex ( CharacterProvider  provider)
inlinestatic

Finds the index where the given provider should be inserted at.

Parameters
providerThe provider to add.
Returns
The index to add it at.
static int PowerUI.CharacterProviders.SearchFor ( int  code)
inlinestatic

Searches for the most suitable index for the given character code.

Parameters
codeThe charcode to look for.
Returns
The index in provider that charcode can be found in.
static void PowerUI.CharacterProviders.Setup ( )
inlinestatic

Adds the default character providers. Called by UI.Start.

Member Data Documentation

string PowerUI.CharacterProviders.EmojiPath ="resources://Characters"
static

The path where emoji chars are found. Any ordinary URL, but must be set before you call UI.Start.

bool PowerUI.CharacterProviders.FixHeight
static

True if emoji should render at a fixed (original) height. Otherwise it will render at a best-guess fontsize height.

List<CharacterProvider> PowerUI.CharacterProviders.Providers
static

The set of all available character providers.

bool PowerUI.CharacterProviders.Started
staticprivate

True when this has been Setup.