C# Класс OpenRA.Graphics.SpriteFont

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void
DrawText ( string text, float2 location, Color c ) : void
DrawTextWithContrast ( string text, float2 location, Color fg, Color bgDark, Color bgLight, int offset ) : void
DrawTextWithContrast ( string text, float2 location, Color fg, Color bg, int offset ) : void
DrawTextWithShadow ( string text, float2 location, Color fg, Color bgDark, Color bgLight, int offset ) : void
DrawTextWithShadow ( string text, float2 location, Color fg, Color bg, int offset ) : void
Measure ( string text ) : int2
SpriteFont ( string name, byte data, int size, SheetBuilder builder ) : System

Приватные методы

Метод Описание
CreateGlyph ( Color>.Pair c ) : GlyphInfo
PrecacheColor ( Color c, string name ) : void

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

DrawText() публичный Метод

public DrawText ( string text, float2 location, Color c ) : void
text string
location float2
c Color
Результат void

DrawTextWithContrast() публичный Метод

public DrawTextWithContrast ( string text, float2 location, Color fg, Color bgDark, Color bgLight, int offset ) : void
text string
location float2
fg Color
bgDark Color
bgLight Color
offset int
Результат void

DrawTextWithContrast() публичный Метод

public DrawTextWithContrast ( string text, float2 location, Color fg, Color bg, int offset ) : void
text string
location float2
fg Color
bg Color
offset int
Результат void

DrawTextWithShadow() публичный Метод

public DrawTextWithShadow ( string text, float2 location, Color fg, Color bgDark, Color bgLight, int offset ) : void
text string
location float2
fg Color
bgDark Color
bgLight Color
offset int
Результат void

DrawTextWithShadow() публичный Метод

public DrawTextWithShadow ( string text, float2 location, Color fg, Color bg, int offset ) : void
text string
location float2
fg Color
bg Color
offset int
Результат void

Measure() публичный Метод

public Measure ( string text ) : int2
text string
Результат int2

SpriteFont() публичный Метод

public SpriteFont ( string name, byte data, int size, SheetBuilder builder ) : System
name string
data byte
size int
builder SheetBuilder
Результат System