Class TAdSimpleTypeSetter

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdSimpleTypeSetter = class(TAdTypeSetter)

Description

TAdSimpleTypeSetter is the standard type setter of Andorra 2D.

Hierarchy

Overview

Methods

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

Properties

Public property LineHeight: double index 0 read FLineHeight write SetData;
Public property CharSpacing: double index 1 read FCharSpacing write SetData;
Public property CharWidth: double index 2 read FCharWidth write SetData;
Public property CharHeight: double index 3 read FCharHeight write SetData;
Public property DrawMode: TAdFontDrawModes read FDrawMode write SetDrawMode;

Description

Methods

Public constructor Create; override;

Creates a new instance of TAdSimpleTypeSetter.

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

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); override;

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); override;

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

Public function CompareTo(ATypeSetter:TAdTypeSetter):boolean; override;

Compares the settings of this instance of the type setter class with another instance and returns whether the settings are equal.

Properties

Public property LineHeight: double index 0 read FLineHeight write SetData;

Relative value that controls the space between two lines. A value of "2" would mean that there is one line space between two lines.

Public property CharSpacing: double index 1 read FCharSpacing write SetData;

Gap between to chars in pixels.

Public property CharWidth: double index 2 read FCharWidth write SetData;

Relative width of a char.

Public property CharHeight: double index 3 read FCharHeight write SetData;

Relative height of a char.

Public property DrawMode: TAdFontDrawModes read FDrawMode write SetDrawMode;

Defines how the text sould be set and aligned.

See also
TAdFontDrawMode
Defines how the TextOutEx function should print the text

SourceForge.net Logo


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