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

WT_Font_Option_Pitch Class Reference
[Font options]

#include <font_options.h>

Inheritance diagram for WT_Font_Option_Pitch:

Inheritance graph
[legend]
Collaboration diagram for WT_Font_Option_Pitch:

Collaboration graph
[legend]
List of all members.

Detailed Description

Font option describing the font pitch.

Describes how the characters of a font are positioned in a string. This option is used in the font matching process to resolve what the writing application intended against what the reading application has available.

Definition at line 153 of file font_options.h.

Public Types

enum  Font_Pitch_Flags { PITCH_DEFAULT = 0x00, PITCH_FIXED = 0x01, PITCH_VARIABLE = 0x02 }
 Describes the character width style. More...

Public Member Functions

Construction
 WT_Font_Option_Pitch ()
 Constructs a WT_Font_Option_Pitch object.
 WT_Font_Option_Pitch (WT_Byte pitch)
 Constructs a WT_Font_Option_Pitch object with the given pitch value.
Data access methods
WT_Byte pitch () const
 Returns the pitch value (one of PITCH_DEFAULT, PITCH_FIXED, or PITCH_VARIABLE.).
void set (WT_Byte pitch)
 Sets the pitch value (one of PITCH_DEFAULT, PITCH_FIXED, or PITCH_VARIABLE.).
WT_Boolean operator== (WT_Font_Option_Pitch const &pt) const
 Returns WD_True if the given font pitch option is equal to this one.
WT_Boolean operator!= (WT_Font_Option_Pitch const &pt) const
 Returns WD_True if the given font pitch option is NOT equal to this one.
WT_Option virtual methods
WT_ID object_id () const
 Returns the WT_ID for this object.
WT_Result serialize (WT_Object const &parent, WT_File &file) const
 Serializes this dependent WT_Option of the parent object.
WT_Result materialize (WT_Object &parent, WT_Optioncode const &optioncode, WT_File &file)
 Materializes the dependent WT_Option of the parent object.


Member Enumeration Documentation

enum WT_Font_Option_Pitch::Font_Pitch_Flags
 

Describes the character width style.

Enumeration values:
PITCH_DEFAULT  Font pitch is unspecified.
PITCH_FIXED  Matching fonts should have characters that are all of the same width.
PITCH_VARIABLE  Matching fonts should have characters that are proportionally spaced (variable width characters.)

Definition at line 161 of file font_options.h.


Constructor & Destructor Documentation

WT_Font_Option_Pitch::WT_Font_Option_Pitch WT_Byte  pitch  )  [inline]
 

Constructs a WT_Font_Option_Pitch object with the given pitch value.

Parameters:
pitch  Pitch value (one of PITCH_DEFAULT, PITCH_FIXED, or PITCH_VARIABLE.)

Definition at line 176 of file font_options.h.


The documentation for this class was generated from the following file:
Generated on Tue May 17 12:07:54 2005 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.1