CartoType API
Public Types | Public Member Functions
CartoType::TTypefaceResourceId Class Reference

#include <cartotype_typeface.h>

List of all members.

Public Types

enum  TType { EName, EMemory }

Public Member Functions

 TTypefaceResourceId (const MString &aName)
 TTypefaceResourceId (const uint8 *aData, int32 aLength, bool aCopyData)
TType Type () const
const MStringName () const
void GetData (const uint8 *&aData, int32 &aLength, bool &aCopyData) const

Detailed Description

The identifier for a typeface resource is either a name, treated by default as a filename, or a pointer to the resource data in memory.


Constructor & Destructor Documentation

CartoType::TTypefaceResourceId::TTypefaceResourceId ( const MString aName) [inline, explicit]

Create a typeface resource identifier for a string usually representing a filename.

CartoType::TTypefaceResourceId::TTypefaceResourceId ( const uint8 *  aData,
int32  aLength,
bool  aCopyData 
) [inline]

Create a typeface resource identifier for data in memory. If aCopyData is true, the typeface accessor copies the data, otherwise it just keeps a pointer to it.


The documentation for this class was generated from the following file: