CChartFont Class Reference

Wrapper class for fonts with advanced properties (italic, bold or underlined). More...

#include <ChartFont.h>

List of all members.

Public Member Functions

 CChartFont (const CChartFont &copy)
 Copy constructor.
 CChartFont (const TChartString &strFaceName, int iPointSize)
 Constructor.
 CChartFont ()
 Default constructor.
 ~CChartFont ()
 Destructor.
void SetFont (const TChartString &strFaceName, int iPointSize, bool bItalic=false, bool bBold=false, bool bUnderline=false)
 Sets the font with extended properties.
void SelectFont (CDC *pDC) const
 Select this font in the device context passed in argument.
void UnselectFont (CDC *pDC) const
 Reset the font to its original in the device context.
void SetVertical (bool bVertical)
 Sets the text in vertical mode.
void operator= (const CChartFont &objectSrc)
 Assignement operator.


Detailed Description

Wrapper class for fonts with advanced properties (italic, bold or underlined).

Constructor & Destructor Documentation

CChartFont::CChartFont ( const TChartString &  strFaceName,
int  iPointSize 
)

Constructor.

Parameters:
strFaceName The font face name
iPointSize The font point size

CChartFont::CChartFont (  ) 

Default constructor.

Construct a font with the "Microsoft Sans Serif" face name and with a point size of 100.


Member Function Documentation

void CChartFont::SelectFont ( CDC *  pDC  )  const

Select this font in the device context passed in argument.

This function stores the current font selected in the DC to set it back when calling UnselectFont. This function is mainly used internally.

void CChartFont::SetFont ( const TChartString &  strFaceName,
int  iPointSize,
bool  bItalic = false,
bool  bBold = false,
bool  bUnderline = false 
)

Sets the font with extended properties.

Parameters:
strFaceName The font face name
iPointSize The font point size
bItalic Specifies if the text is in italic
bBold Specifies if the text is in bold
bUnderline Specifies if the text is underlined

void CChartFont::SetVertical ( bool  bVertical  ) 

Sets the text in vertical mode.

This function is mainly used internally.


The documentation for this class was generated from the following files:

Generated on Sun Jan 17 13:33:11 2010 for ChartDemo by  doxygen 1.5.8