C# Class Sharplike.UI.GlyphMap

A map for quick access to the RenderSystem's Glyphs by other names.
Show file Open project: eropple/sharplike Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
Get ( Object key ) : Int32
GlyphMap ( ) : System
LoadDefaults ( GlyphMap glyphMap ) : GlyphMap
Register ( Object key, Int32 glyphIndex ) : void
this ( Object key ) : Int32

Gets or sets the numeric glyph index associated with a given object key. This key is intentionally typeless, but a standard GlyphMap comes preloaded with all glyphs in the GlyphDefaults enumeration, as well as most English glyphs as Char types.

Method Details

Clear() public method

public Clear ( ) : void
return void

Get() public method

public Get ( Object key ) : Int32
key Object
return System.Int32

GlyphMap() public method

public GlyphMap ( ) : System
return System

LoadDefaults() public static method

public static LoadDefaults ( GlyphMap glyphMap ) : GlyphMap
glyphMap GlyphMap
return GlyphMap

Register() public method

public Register ( Object key, Int32 glyphIndex ) : void
key Object
glyphIndex System.Int32
return void

this() public method

Gets or sets the numeric glyph index associated with a given object key. This key is intentionally typeless, but a standard GlyphMap comes preloaded with all glyphs in the GlyphDefaults enumeration, as well as most English glyphs as Char types.
public this ( Object key ) : Int32
key Object The object key for searching.
return System.Int32