Class TAdFontDataKey

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdFontDataKey = class(TAdMapKey)

Description

TAdFontDataKey is used internally by TAdFontFactory to store the fonts in a hash map.

Hierarchy

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function Hash: integer; override;
Public function Equal(AItem:TAdMapKey):boolean; override;
Public procedure InsertData(AMetaData:Pointer; AMetaDataSize: Cardinal);
Public procedure SaveToStream(AStream:TStream);
Public procedure LoadFromStream(AStream:TStream);

Properties

Public property MetaData: Pointer read FMetaData;
Public property MetaDataSize: Cardinal read FMetaDataSize;
Public property Font: TAdFont read FFont write FFont;
Public property AutoFreeFont: boolean read FAutoFreeFont write FAutoFreeFont;

Description

Methods

Public constructor Create;

Creates an instance of TAdFontDataKey.

Public destructor Destroy; override;

Destroys the instance of TAdFontDataKey.

Public function Hash: integer; override;

Returns a hash value that represents this font data hash. The hash value is calculated once when "InsertData" is called.

See also
InsertData
Stores the font meta data in the key and calculates the hash value.
Public function Equal(AItem:TAdMapKey):boolean; override;

Compares AItem to itsself and returns whether the two font data keys are equal.

Public procedure InsertData(AMetaData:Pointer; AMetaDataSize: Cardinal);

Stores the font meta data in the key and calculates the hash value.

Public procedure SaveToStream(AStream:TStream);

Saves the key metadata to a stream.

Public procedure LoadFromStream(AStream:TStream);

Loads the key metadata from a stream.

Properties

Public property MetaData: Pointer read FMetaData;

Pointer to the font metadata

Public property MetaDataSize: Cardinal read FMetaDataSize;

Size of the metadata stored in the metadata property.

Public property Font: TAdFont read FFont write FFont;

The font that is attached to this font datakey

Public property AutoFreeFont: boolean read FAutoFreeFont write FAutoFreeFont;

If true, the font will be freed with this data key.

SourceForge.net Logo


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