Class TRichText
Unit
CastleFontFamily
Declaration
type TRichText = class(specialize TObjectList<TTextLine>)
Description
Multi-line text with processing commands (like "change font to bold now"). Used to render "rich text", which is text that may contain (a subset of) HTML.
Note that TRichText instance is always tied to a corresponding TFontFamily used to render it. Through the lifetime of TRichText , we assume that size and other properties of this font remain constant.
Hierarchy
Overview
Methods
Description
Methods
 |
constructor Create(const AFont: TCastleFont; const Text: TStrings; const Html: boolean); |
|
 |
constructor Create(const AFont: TCastleFont; const S: string; const Html: boolean); |
|
 |
destructor Destroy; override; |
|
 |
function Width: Cardinal; |
|
 |
procedure Wrap(const MaxWidth: Cardinal); |
|
 |
procedure Print(const X0, Y0: Integer; const Color: TCastleColor; const LineSpacing: Integer; const TextHorizontalAlignment: THorizontalPosition = hpLeft; MaxDisplayChars: Integer = -1); |
|
 |
function DisplayChars: Cardinal; |
|
Generated by PasDoc 0.15.0.
|