Class TAdTypeSetter

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdTypeSetter = class(TObject)

Description

Abstract class that represents a type setter for Andorra 2D bitmap fonts. Texts are

Hierarchy

Overview

Methods

Public constructor Create; virtual;
Public function MaxHeight:double;
Public function MaxWidth:double;
Public procedure GenerateLine(AX,AY:double; AText:string; var ATextSet:TAdTextSet); virtual; abstract;
Public procedure Generate(ARect:TAdRect; AText:string; var ATextSet:TAdTextSet); virtual; abstract;
Public procedure Assign(ASource:TAdTypeSetter); virtual; abstract;
Public function CompareTo(ATypeSetter:TAdTypeSetter):boolean; virtual; abstract;

Properties

Public property CharSizes: TAdCharSizes read FCharSizes write FCharSizes;
Public property CharPatterns: TAdCharPatterns read FCharPatterns write FCharPatterns;
Public property Changed: boolean read FChanged write FChanged;
Public property TextWidth: integer read FTextWidth;
Public property TextHeight: integer read FTextHeight;

Description

Methods

Public constructor Create; virtual;

Creates a new instance of TAdTypeSetter. This method should not be called for TAdTypeSetter as it is an abstract class. Use TAdSimpleTypeSetter or other classes derived from TAdTypeSetter instead.

Public function MaxHeight:double;

Returns the maximum width of a char in the font currently loaded into the type setter.

Public function MaxWidth:double;

Returns the maximum width of a char in the font currently loaded into the type setter.

Public procedure GenerateLine(AX,AY:double; AText:string; var ATextSet:TAdTextSet); virtual; abstract;

Generates one line of text.

Parameters
AX
specifies the output X-coordinate of the generated text.
AY
specifies the output Y-coordinate of the generated text.
AText
specifies the text that is actually set.
ATextSet
specifies the output text set that will contain the output data.
Public procedure Generate(ARect:TAdRect; AText:string; var ATextSet:TAdTextSet); virtual; abstract;

Generates the specified text in the given rectangle.

Parameters
ARect
specifies the output rectangle of the text.
AText
specifies the text that is actually set.
ATextSet
specifies the output text set that will contain the output data.
Public procedure Assign(ASource:TAdTypeSetter); virtual; abstract;

Copies the settings from another instance of a type setter class.

Public 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.

Properties

Public property CharSizes: TAdCharSizes read FCharSizes write FCharSizes;

Pointer on the array that contains the sizes of each char.

Public property CharPatterns: TAdCharPatterns read FCharPatterns write FCharPatterns;

Pointer on the array that contains the texture coordinates of each char.

Public property Changed: boolean read FChanged write FChanged;

Returns whether any settings have changed.

Public property TextWidth: integer read FTextWidth;

Contains the width of the text that had been lastly set.

Public property TextHeight: integer read FTextHeight;

Contains the height of the text that had been lastly set.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:59