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

VCF::FontPeer Class Reference

Represents the native windowing system's representation of a Font. More...

#include <vcf/GraphicsKit/FontPeer.h>

Inheritance diagram for VCF::FontPeer:

VCF::GTKFont VCF::OSXFont VCF::Win32Font VCF::X11Font VCF::XCBFontPeer List of all members.

Public Member Functions

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

Detailed Description

Represents the native windowing system's representation of a Font.


Constructor & Destructor Documentation

virtual VCF::FontPeer::~FontPeer  )  [inline, virtual]
 


Member Function Documentation

virtual double VCF::FontPeer::getAscent  )  [pure virtual]
 

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual bool VCF::FontPeer::getBold  )  [pure virtual]
 

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual double VCF::FontPeer::getDescent  )  [pure virtual]
 

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual OSHandleID VCF::FontPeer::getFontHandleID  )  [pure 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.

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual bool VCF::FontPeer::getItalic  )  [pure virtual]
 

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual String VCF::FontPeer::getName  )  [pure virtual]
 

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual double VCF::FontPeer::getPixelSize  )  [pure virtual]
 

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual double VCF::FontPeer::getPointSize  )  [pure 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

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual bool VCF::FontPeer::getStrikeOut  )  [pure virtual]
 

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual bool VCF::FontPeer::getUnderlined  )  [pure virtual]
 

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual bool VCF::FontPeer::isFixedPitch  )  [pure virtual]
 

Implemented in VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual bool VCF::FontPeer::isTrueType  )  [pure virtual]
 

is this font a TrueType font ?

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

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

sets ALL the attributes in one fell swoop

Implemented in VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

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

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual void VCF::FontPeer::setFont Font font  )  [pure virtual]
 

Implemented in VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

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

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual void VCF::FontPeer::setName const String name  )  [pure virtual]
 

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual void VCF::FontPeer::setPixelSize const double  pixelSize  )  [pure virtual]
 

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

virtual void VCF::FontPeer::setPointSize const double  pointSize  )  [pure virtual]
 

sets the point size of the FontPeer

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

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

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.

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

Implemented in VCF::X11Font, VCF::GTKFont, VCF::OSXFont, VCF::Win32Font, and VCF::XCBFontPeer.


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