Description | Hierarchy | Fields | Methods | Properties |
type TAdFontDataKey = class(TAdMapKey)
TAdFontDataKey is used internally by TAdFontFactory to store the fonts in a hash map.
constructor Create; |
|
destructor Destroy; override; |
|
function Hash: integer; override; |
|
function Equal(AItem:TAdMapKey):boolean; override; |
|
procedure InsertData(AMetaData:Pointer; AMetaDataSize: Cardinal); |
|
procedure SaveToStream(AStream:TStream); |
|
procedure LoadFromStream(AStream:TStream); |
property MetaData: Pointer read FMetaData; |
|
property MetaDataSize: Cardinal read FMetaDataSize; |
|
property Font: TAdFont read FFont write FFont; |
|
property AutoFreeFont: boolean read FAutoFreeFont write FAutoFreeFont; |
constructor Create; |
|
Creates an instance of TAdFontDataKey. |
destructor Destroy; override; |
|
Destroys the instance of TAdFontDataKey. |
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
|
function Equal(AItem:TAdMapKey):boolean; override; |
|
Compares AItem to itsself and returns whether the two font data keys are equal. |
procedure InsertData(AMetaData:Pointer; AMetaDataSize: Cardinal); |
|
Stores the font meta data in the key and calculates the hash value. |
procedure SaveToStream(AStream:TStream); |
|
Saves the key metadata to a stream. |
procedure LoadFromStream(AStream:TStream); |
|
Loads the key metadata from a stream. |
property MetaData: Pointer read FMetaData; |
|
Pointer to the font metadata |
property MetaDataSize: Cardinal read FMetaDataSize; |
|
Size of the metadata stored in the metadata property. |
property Font: TAdFont read FFont write FFont; |
|
The font that is attached to this font datakey |
property AutoFreeFont: boolean read FAutoFreeFont write FAutoFreeFont; |
|
If true, the font will be freed with this data key. |