Class TRichText

Unit

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

  • TObjectList
  • TRichText

Overview

Methods

Public constructor Create(const AFont: TCastleFont; const Text: TStrings; const Html: boolean);
Public constructor Create(const AFont: TCastleFont; const S: string; const Html: boolean);
Public destructor Destroy; override;
Public function Width: Cardinal;
Public procedure Wrap(const MaxWidth: Cardinal);
Public procedure Print(const X0, Y0: Integer; const Color: TCastleColor; const LineSpacing: Integer; const TextHorizontalAlignment: THorizontalPosition = hpLeft; MaxDisplayChars: Integer = -1);
Public function DisplayChars: Cardinal;

Description

Methods

Public constructor Create(const AFont: TCastleFont; const Text: TStrings; const Html: boolean);
 
Public constructor Create(const AFont: TCastleFont; const S: string; const Html: boolean);
 
Public destructor Destroy; override;
 
Public function Width: Cardinal;
 
Public procedure Wrap(const MaxWidth: Cardinal);
 
Public procedure Print(const X0, Y0: Integer; const Color: TCastleColor; const LineSpacing: Integer; const TextHorizontalAlignment: THorizontalPosition = hpLeft; MaxDisplayChars: Integer = -1);
 
Public function DisplayChars: Cardinal;
 

Generated by PasDoc 0.15.0.