pleyo.com

WKAL::FontDescription Class Reference

List of all members.

Public Types

enum  GenericFamilyType {
  NoFamily, StandardFamily, SerifFamily, SansSerifFamily,
  MonospaceFamily, CursiveFamily, FantasyFamily
}

Public Member Functions

 FontDescription ()
 FontDescription default constructor.
bool operator== (const FontDescription &) const
 operator==
bool operator!= (const FontDescription &other) const
 operator!=
const FontFamilyfamily () const
 get font family
FontFamilyfirstFamily ()
 get first family
float specifiedSize () const
 get specified size
float computedSize () const
 get computed size
bool italic () const
 get italic status
int computedPixelSize () const
 get computed pixel size
bool smallCaps () const
 get smallCaps status
bool isAbsoluteSize () const
 get if it's absolute size
FontWeight weight () const
 get the font weight
FontWeight lighterWeight () const
 get the font lighter weight
FontWeight bolderWeight () const
 get font bolder Weight
GenericFamilyType genericFamily () const
 get generic font family
bool usePrinterFont () const
 test if you use printer font
FontRenderingMode renderingMode () const
 iget font rendering mode
int keywordSize () const
 get keyword size
FontTraitsMask traitsMask () const
 get font traits mask
void setFamily (const FontFamily &family)
 set font family
void setComputedSize (float s)
 set computed size
void setSpecifiedSize (float s)
 set specified size
void setItalic (bool i)
 set italic status
void setSmallCaps (bool c)
 set SmallCaps status
void setIsAbsoluteSize (bool s)
 set absolute size status
void setWeight (FontWeight w)
 set font weight
void setGenericFamily (GenericFamilyType genericFamily)
 set generic font family description
void setUsePrinterFont (bool p)
 set if you use printer font
void setRenderingMode (FontRenderingMode mode)
 set font rendering mode
void setKeywordSize (int s)
 set keyword size


Member Enumeration Documentation

Enumerator:
NoFamily 
StandardFamily 
SerifFamily 
SansSerifFamily 
MonospaceFamily 
CursiveFamily 
FantasyFamily 


Constructor & Destructor Documentation

WKAL::FontDescription::FontDescription (  ) 

FontDescription default constructor.


Member Function Documentation

bool WKAL::FontDescription::operator== ( const FontDescription  )  const [inline]

operator==

Parameters:
[in] : FontDescription
[out] : false if it's not equal
 bool eq = fd == fdOther;
[in] : FontDescription&
[out] : true if it's equal
 bool eq = fd == fdOther;

bool WKAL::FontDescription::operator!= ( const FontDescription other  )  const

operator!=

Parameters:
[in] : FontDescription
[out] : false if it's equal
 bool di = fd != fdOther;

const FontFamily& WKAL::FontDescription::family (  )  const

get font family

Parameters:
[out] : font family
 FontFamily fa = fd->family();

FontFamily& WKAL::FontDescription::firstFamily (  ) 

get first family

Parameters:
[out] : font family
 FontFamily fa = fd->firstFamily();

float WKAL::FontDescription::specifiedSize (  )  const

get specified size

Parameters:
[out] : size
 float size = fd->specifiedSize();

float WKAL::FontDescription::computedSize (  )  const

get computed size

Parameters:
[out] : computed size
 float size = fd->computedSize();

bool WKAL::FontDescription::italic (  )  const

get italic status

Parameters:
[out] : status
 bool it = fd->italic()

int WKAL::FontDescription::computedPixelSize (  )  const

get computed pixel size

Parameters:
[out] : computed pixel size
 int cps = fd->computedPixelSize();

bool WKAL::FontDescription::smallCaps (  )  const

get smallCaps status

Parameters:
[out] : status
 bool sc = fd->smallCaps();

bool WKAL::FontDescription::isAbsoluteSize (  )  const

get if it's absolute size

Parameters:
[out] : absolute size status
 bool as = fd->isAbsoluteSize();

FontWeight WKAL::FontDescription::weight (  )  const

get the font weight

Parameters:
[out] : font weight
 FontWeight fw = fd->weight();

FontWeight WKAL::FontDescription::lighterWeight (  )  const

get the font lighter weight

Parameters:
[out] : font lighter weight
 FontWeight fw = fd->lighterWeight();

FontWeight WKAL::FontDescription::bolderWeight (  )  const

get font bolder Weight

Parameters:
[out] : font bolder Weight
 FontWeight fw = fd->bolderWeight();

GenericFamilyType WKAL::FontDescription::genericFamily (  )  const

get generic font family

Parameters:
[out] : generic font family
 GenericFamilyType gff = fd->genericFamily();

bool WKAL::FontDescription::usePrinterFont (  )  const

test if you use printer font

Parameters:
[out] : true or false
 bool upf = fd->usePrinterFont();

FontRenderingMode WKAL::FontDescription::renderingMode (  )  const

iget font rendering mode

Parameters:
[out] : font rendering mode
 FontRenderingMode frm = fd->renderingMode();

int WKAL::FontDescription::keywordSize (  )  const

get keyword size

Parameters:
[out] : keyword size
 int ks = fd->keywordSize();

FontTraitsMask WKAL::FontDescription::traitsMask (  )  const

get font traits mask

Parameters:
[out] : font traits mask
 FontTraitsMask m = fd->traitsMask();

void WKAL::FontDescription::setFamily ( const FontFamily family  ) 

set font family

Parameters:
[in] : font family
 fd->setFamily(fa);

void WKAL::FontDescription::setComputedSize ( float  s  ) 

set computed size

Parameters:
[in] : computed size
 fd->setComputedSize(12.0);

void WKAL::FontDescription::setSpecifiedSize ( float  s  ) 

set specified size

Parameters:
[in] : specified size
 fd->setSpecifiedSize(12.0);

void WKAL::FontDescription::setItalic ( bool  i  ) 

set italic status

Parameters:
[in] : status
 fd->setItalic(false);

void WKAL::FontDescription::setSmallCaps ( bool  c  ) 

set SmallCaps status

Parameters:
[in] : status
 fd->setSmallCaps(true);

void WKAL::FontDescription::setIsAbsoluteSize ( bool  s  ) 

set absolute size status

Parameters:
[in] : status
 fd->setIsAbsoluteSize(false);

void WKAL::FontDescription::setWeight ( FontWeight  w  ) 

set font weight

Parameters:
[in] : font weight
 fd->setWeight(w);

void WKAL::FontDescription::setGenericFamily ( GenericFamilyType  genericFamily  ) 

set generic font family description

Parameters:
[in] : generic font family
 fd->setGenericFamily(gf);

void WKAL::FontDescription::setUsePrinterFont ( bool  p  ) 

set if you use printer font

Parameters:
[in] : status
 fd->setUsePrinterFont(true);

void WKAL::FontDescription::setRenderingMode ( FontRenderingMode  mode  ) 

set font rendering mode

Parameters:
[in] : font rendering mode
 fd->setRenderingMode(mode);

void WKAL::FontDescription::setKeywordSize ( int  s  ) 

set keyword size

Parameters:
[in] : size
 fd->setKeywordSize(12);


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

Generated on Mon Jun 30 16:22:07 2008 for Origyn Web Browser by Doxygen 1.5.5

pleyo.com
pleyo.com