Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::XCBFontPeer Class Reference

#include <XCBFontPeer.h>

Inheritance diagram for VCF::XCBFontPeer:

VCF::FontPeer List of all members.

Public Member Functions

 XCBFontPeer (const String &fontName)
 XCBFontPeer (const String &fontName, const double &pointSize)
virtual OSHandleID getFontHandleID ()
 returns a integer representing some native handle to a font structure.
virtual String getName ()
virtual void setName (const String &name)
virtual bool isTrueType ()
 is this font a TrueType font ?
virtual double getPointSize ()
 return the point size of the Font.
virtual void setPointSize (const double pointSize)
 sets the point size of the FontPeer
virtual double getPixelSize ()
virtual void setPixelSize (const double pixelSize)
virtual void setBold (const bool &bold)
virtual bool getBold ()
virtual bool getItalic ()
virtual void setItalic (const bool &italic)
virtual bool getUnderlined ()
virtual void setUnderlined (const bool &underlined)
virtual bool getStrikeOut ()
virtual void setStrikeOut (const bool &strikeout)
virtual void setAttributes (const double &pointSize, const bool &bold, const bool &italic, const bool &underlined, const bool &struckOut, const String &name)
 sets ALL the attributes in one fell swoop
virtual double getAscent ()
virtual double getDescent ()
virtual bool isFixedPitch ()
virtual void setFont (Font *font)
String getHashcode ()
void internal_setIsTrueTypeFont (bool val)
void internal_setIsFixedPitchFont (bool val)
void internal_setAscent (double val)
void internal_setDescent (double val)

Protected Member Functions

void settingsChanged ()

Protected Attributes

String fontName_
bool bold_
bool underlined_
bool italic_
bool strikeOut_
double pointSize_
bool trueTypeFont_
bool fixedPitchFont_
double ascent_
double descent_

Constructor & Destructor Documentation

VCF::XCBFontPeer::XCBFontPeer const String fontName  ) 
 

VCF::XCBFontPeer::XCBFontPeer const String fontName,
const double &  pointSize
 


Member Function Documentation

virtual double VCF::XCBFontPeer::getAscent  )  [virtual]
 

Implements VCF::FontPeer.

virtual bool VCF::XCBFontPeer::getBold  )  [virtual]
 

Implements VCF::FontPeer.

virtual double VCF::XCBFontPeer::getDescent  )  [virtual]
 

Implements VCF::FontPeer.

virtual OSHandleID VCF::XCBFontPeer::getFontHandleID  )  [virtual]
 

returns a integer representing some native handle to a font structure.

What this actually is depends on the Windowing system implementation. Under Win32 this represents a pointer to a LOGFONT structure.

Implements VCF::FontPeer.

String VCF::XCBFontPeer::getHashcode  ) 
 

virtual bool VCF::XCBFontPeer::getItalic  )  [virtual]
 

Implements VCF::FontPeer.

virtual String VCF::XCBFontPeer::getName  )  [virtual]
 

Implements VCF::FontPeer.

virtual double VCF::XCBFontPeer::getPixelSize  )  [virtual]
 

Implements VCF::FontPeer.

virtual double VCF::XCBFontPeer::getPointSize  )  [virtual]
 

return the point size of the Font.

One point is 1/72 of an inch ( or 0.0352552 cm for our more civilized friends !), so to figure out the pixels involved, find out the Pixels per Inch and then apply the following formula (PointSize / 72) * PPI where PPI represents the Pixels Per Inch

Implements VCF::FontPeer.

virtual bool VCF::XCBFontPeer::getStrikeOut  )  [virtual]
 

Implements VCF::FontPeer.

virtual bool VCF::XCBFontPeer::getUnderlined  )  [virtual]
 

Implements VCF::FontPeer.

void VCF::XCBFontPeer::internal_setAscent double  val  )  [inline]
 

void VCF::XCBFontPeer::internal_setDescent double  val  )  [inline]
 

void VCF::XCBFontPeer::internal_setIsFixedPitchFont bool  val  )  [inline]
 

void VCF::XCBFontPeer::internal_setIsTrueTypeFont bool  val  )  [inline]
 

virtual bool VCF::XCBFontPeer::isFixedPitch  )  [virtual]
 

Implements VCF::FontPeer.

virtual bool VCF::XCBFontPeer::isTrueType  )  [virtual]
 

is this font a TrueType font ?

Implements VCF::FontPeer.

virtual void VCF::XCBFontPeer::setAttributes const double &  pointSize,
const bool &  bold,
const bool &  italic,
const bool &  underlined,
const bool &  struckOut,
const String name
[virtual]
 

sets ALL the attributes in one fell swoop

Implements VCF::FontPeer.

virtual void VCF::XCBFontPeer::setBold const bool &  bold  )  [virtual]
 

Implements VCF::FontPeer.

virtual void VCF::XCBFontPeer::setFont Font font  )  [virtual]
 

Implements VCF::FontPeer.

virtual void VCF::XCBFontPeer::setItalic const bool &  italic  )  [virtual]
 

Implements VCF::FontPeer.

virtual void VCF::XCBFontPeer::setName const String name  )  [virtual]
 

Implements VCF::FontPeer.

virtual void VCF::XCBFontPeer::setPixelSize const double  pixelSize  )  [virtual]
 

Implements VCF::FontPeer.

virtual void VCF::XCBFontPeer::setPointSize const double  pointSize  )  [virtual]
 

sets the point size of the FontPeer

Implements VCF::FontPeer.

virtual void VCF::XCBFontPeer::setStrikeOut const bool &  strikeout  )  [virtual]
 

Implements VCF::FontPeer.

void VCF::XCBFontPeer::settingsChanged  )  [protected]
 

virtual void VCF::XCBFontPeer::setUnderlined const bool &  underlined  )  [virtual]
 

Implements VCF::FontPeer.


Member Data Documentation

double VCF::XCBFontPeer::ascent_ [protected]
 

bool VCF::XCBFontPeer::bold_ [protected]
 

double VCF::XCBFontPeer::descent_ [protected]
 

bool VCF::XCBFontPeer::fixedPitchFont_ [protected]
 

String VCF::XCBFontPeer::fontName_ [protected]
 

bool VCF::XCBFontPeer::italic_ [protected]
 

double VCF::XCBFontPeer::pointSize_ [protected]
 

bool VCF::XCBFontPeer::strikeOut_ [protected]
 

bool VCF::XCBFontPeer::trueTypeFont_ [protected]
 

bool VCF::XCBFontPeer::underlined_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information