FontListItem Class Reference

A class to describe the structure of an item held in the font usage list. An item simply contains a fontname and a usage count. More...

#include <fontlist.h>

Inheritance diagram for FontListItem:

ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 FontListItem ()
 Default constructor.
void Initialise (String_64 &String, INT32 Style, FontClass=FC_UNDEFINED)
 Initalise a fontlist item.
void IncUsage ()
String_64 GetFontName ()
INT32 GetFontStyle ()
INT32 GetFontUsage ()
FontClass GetFontClass ()

Private Member Functions

 CC_DECLARE_MEMDUMP (FontListItem)

Private Attributes

String_64 FontName
INT32 FontStyle
INT32 FontUsage
FontClass Class

Detailed Description

A class to describe the structure of an item held in the font usage list. An item simply contains a fontname and a usage count.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/4/95

Definition at line 126 of file fontlist.h.


Constructor & Destructor Documentation

FontListItem::FontListItem  ) 
 

Default constructor.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/4/95
Parameters:
- [INPUTS]
Returns:
-

Definition at line 134 of file fontlist.cpp.

00135 {
00136     FontStyle=0;
00137     FontUsage=0;
00138     Class=FC_UNDEFINED;
00139 }


Member Function Documentation

FontListItem::CC_DECLARE_MEMDUMP FontListItem   )  [private]
 

FontClass FontListItem::GetFontClass  )  [inline]
 

Definition at line 139 of file fontlist.h.

00139 { return    Class; }

String_64 FontListItem::GetFontName  )  [inline]
 

Definition at line 136 of file fontlist.h.

00136 { return FontName; }

INT32 FontListItem::GetFontStyle  )  [inline]
 

Definition at line 137 of file fontlist.h.

00137 { return    FontStyle; }

INT32 FontListItem::GetFontUsage  )  [inline]
 

Definition at line 138 of file fontlist.h.

00138 { return    FontUsage; }

void FontListItem::IncUsage  )  [inline]
 

Definition at line 134 of file fontlist.h.

00134 { FontUsage++; }

void FontListItem::Initialise String_64 String,
INT32  Style,
FontClass  FClass = FC_UNDEFINED
 

Initalise a fontlist item.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/4/95
Parameters:
String - Typeface name of item [INPUTS] Style - &1 for Bold, &2 for Italic FClass - FontClass of item (TrueType, ATM, etc)
Returns:
-

Definition at line 155 of file fontlist.cpp.

00156 {
00157     ENSURE(FontUsage==0, "None NULL FontListItem initialised!");
00158 
00159     FontName=String;
00160     FontStyle=Style;
00161     FontUsage=1;
00162     Class=FClass;
00163 }


Member Data Documentation

FontClass FontListItem::Class [private]
 

Definition at line 145 of file fontlist.h.

String_64 FontListItem::FontName [private]
 

Definition at line 142 of file fontlist.h.

INT32 FontListItem::FontStyle [private]
 

Definition at line 143 of file fontlist.h.

INT32 FontListItem::FontUsage [private]
 

Definition at line 144 of file fontlist.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:54:30 2007 for Camelot by  doxygen 1.4.4