Description | Hierarchy | Fields | Methods | Properties |
type TAdTypeSetter = class(TObject)
Abstract class that represents a type setter for Andorra 2D bitmap fonts. Texts are
constructor Create; virtual; |
|
function MaxHeight:double; |
|
function MaxWidth:double; |
|
procedure GenerateLine(AX,AY:double; AText:string; var ATextSet:TAdTextSet); virtual; abstract; |
|
procedure Generate(ARect:TAdRect; AText:string; var ATextSet:TAdTextSet); virtual; abstract; |
|
procedure Assign(ASource:TAdTypeSetter); virtual; abstract; |
|
function CompareTo(ATypeSetter:TAdTypeSetter):boolean; virtual; abstract; |
property CharSizes: TAdCharSizes read FCharSizes write FCharSizes; |
|
property CharPatterns: TAdCharPatterns read FCharPatterns write FCharPatterns; |
|
property Changed: boolean read FChanged write FChanged; |
|
property TextWidth: integer read FTextWidth; |
|
property TextHeight: integer read FTextHeight; |
function MaxHeight:double; |
|
Returns the maximum width of a char in the font currently loaded into the type setter. |
function MaxWidth:double; |
|
Returns the maximum width of a char in the font currently loaded into the type setter. |
procedure GenerateLine(AX,AY:double; AText:string; var ATextSet:TAdTextSet); virtual; abstract; |
|
Generates one line of text. Parameters
|
procedure Generate(ARect:TAdRect; AText:string; var ATextSet:TAdTextSet); virtual; abstract; |
|
Generates the specified text in the given rectangle. Parameters
|
procedure Assign(ASource:TAdTypeSetter); virtual; abstract; |
|
Copies the settings from another instance of a type setter class. |
function CompareTo(ATypeSetter:TAdTypeSetter):boolean; virtual; abstract; |
|
Compares the settings of this instance of the type setter class with another instance and returns whether the settings are equal. |
property CharSizes: TAdCharSizes read FCharSizes write FCharSizes; |
|
Pointer on the array that contains the sizes of each char. |
property CharPatterns: TAdCharPatterns read FCharPatterns write FCharPatterns; |
|
Pointer on the array that contains the texture coordinates of each char. |
property Changed: boolean read FChanged write FChanged; |
|
Returns whether any settings have changed. |
property TextWidth: integer read FTextWidth; |
|
Contains the width of the text that had been lastly set. |
property TextHeight: integer read FTextHeight; |
|
Contains the height of the text that had been lastly set. |