Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_FontMetrics Class Reference

Class to provide font metric information about a CP_Font.

Inheritance diagram for CP_FontMetrics:

CP_M_RefCounted List of all members.

Public Member Functions

Constructor / Destructor
 CP_FontMetrics (CP_Font *inOwnerFont)
 Constructor.
virtual ~CP_FontMetrics () throw ()
 Destructor.
Getters
SInt16 Height ()
SInt16 AscentHeight ()
Measurement
SInt16 CharWidth (char inChar)
SInt32 TextWidth (const CP_String &inText)
SInt32 TextWidth (char *inText, SInt32 inLineStart, SInt32 inLineLength)

Protected Attributes

CP_Font * fOwnerFont

Constructor & Destructor Documentation

CPLAT_Begin_Namespace_CPLAT CP_FontMetrics::CP_FontMetrics (  CP_Font *  inOwnerFont  ) 
 

Constructor.

Exceptions:
none 

CP_FontMetrics::~CP_FontMetrics (   )  throw () [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

SInt16 CP_FontMetrics::Height (   ) 
 

SInt16 CP_FontMetrics::AscentHeight (   ) 
 

SInt16 CP_FontMetrics::CharWidth (  char  inChar  ) 
 

SInt32 CP_FontMetrics::TextWidth (  const CP_String &  inText  ) 
 

SInt32 CP_FontMetrics::TextWidth (  char *  inText,
SInt32  inLineStart,
SInt32  inLineLength
) 
 

UInt32 CP_M_RefCounted::AddReference (   )  const [inherited]
 

Add a reference to our object, returning the new reference count.

Exceptions:
none 
Returns:
UInt32 const Returns the new reference count.

UInt32 CP_M_RefCounted::RemoveReference (   )  const [inherited]
 

Remove a reference to our object, returning the new reference count. If the count is 0, then this object is also deleted, and 0 is returned.

Exceptions:
none 
Returns:
UInt32 const Returns the new reference count.

void CP_M_RefCounted::Autorelease (   )  const [inherited]
 

Add the object to the topmost auto-release pool. This will ensure that the object is eventually released.

See also:
CP_AutoReleasePool
Exceptions:
none 
Returns:
void

UInt32 CP_M_RefCounted::GetRefCount (   )  const [inherited]
 

Returns the current ref count.

Exceptions:
none 
Returns:
UInt32 The current referencce count.


Member Data Documentation

CP_Font* CP_FontMetrics::fOwnerFont [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:21:46 2005 for CPLAT_MacOS by  doxygen 1.4.0