PPL6-Icon Patrick's Programming Library Version 6.4.21 - Dokumentation
ppl6::grafix::CFont Klassenreferenz

Repräsentiert die verschiedenen Parameter eines Fonts. Mehr ...

Öffentliche Typen

enum  Orientation {
  LEFT =1, MIDDLE, RIGHT, TOP,
  BOTTOM, BASE
}
 

Öffentliche Methoden

 CFont ()
 
 CFont (const CFont &other)
 
bool antialias () const
 
bool bold () const
 
Color borderColor () const
 
Color color () const
 
bool drawBorder () const
 
bool drawShadow () const
 
bool drawUnderline () const
 
bool italic () const
 
Size measure (const CWString &text) const
 
Size measure (const char *fmt,...) const
 
bool monospace () const
 
CString name () const
 
CFontoperator= (const CFont &other)
 
Orientation orientation () const
 
double rotation () const
 
void setAntialias (bool enable)
 
void setBold (bool enable)
 
void setBorderColor (const Color &c)
 
void setColor (const Color &c)
 
void setColors (const Color &Foreground, const Color &Border, const Color Shadow)
 
void setDrawBorder (bool enable)
 
void setDrawShadow (bool enable)
 
void setDrawUnderline (bool enable)
 
void setItalic (bool enable)
 
void setMonospace (bool enable)
 
int setName (const CString &name)
 
void setOrientation (Orientation o)
 
void setRotation (double degrees)
 
void setShadowColor (const Color &c)
 
void setSize (int size)
 
Color shadowColor () const
 
int size () const
 

Private Typen

enum  FontFlags {
  fBold =1, fItalic =2, fAntialias =4, fDrawBorder =8,
  fDrawShadow =16, fUnderline =32, fMonospace =64
}
 

Private Attribute

Color cBorder
 
Color cForeground
 
Color cShadow
 
ppluint8 flags
 
ppluint16 fontSize
 
CString Name
 
ppluint8 ori
 
double rotationDegrees
 

Freundbeziehungen

bool operator!= (const CFont &f1, const CFont &f2)
 
bool operator== (const CFont &f1, const CFont &f2)
 

Ausführliche Beschreibung

Rückgabe

Dokumentation der Aufzählungstypen

Aufzählungswerte
fBold 
fItalic 
fAntialias 
fDrawBorder 
fDrawShadow 
fUnderline 
fMonospace 
Aufzählungswerte
LEFT 
MIDDLE 
RIGHT 
TOP 
BOTTOM 
BASE 

Beschreibung der Konstruktoren und Destruktoren

ppl6::grafix::CFont::CFont ( )
ppl6::grafix::CFont::CFont ( const CFont other)

Dokumentation der Elementfunktionen

bool ppl6::grafix::CFont::antialias ( ) const
bool ppl6::grafix::CFont::bold ( ) const
Color ppl6::grafix::CFont::borderColor ( ) const
Color ppl6::grafix::CFont::color ( ) const
bool ppl6::grafix::CFont::drawBorder ( ) const
bool ppl6::grafix::CFont::drawShadow ( ) const
bool ppl6::grafix::CFont::drawUnderline ( ) const
bool ppl6::grafix::CFont::italic ( ) const
Size ppl6::grafix::CFont::measure ( const CWString text) const
Size ppl6::grafix::CFont::measure ( const char *  fmt,
  ... 
) const
bool ppl6::grafix::CFont::monospace ( ) const
CString ppl6::grafix::CFont::name ( ) const
CFont & ppl6::grafix::CFont::operator= ( const CFont other)
CFont::Orientation ppl6::grafix::CFont::orientation ( ) const
double ppl6::grafix::CFont::rotation ( ) const
void ppl6::grafix::CFont::setAntialias ( bool  enable)
void ppl6::grafix::CFont::setBold ( bool  enable)
void ppl6::grafix::CFont::setBorderColor ( const Color c)
void ppl6::grafix::CFont::setColor ( const Color c)
void ppl6::grafix::CFont::setColors ( const Color Foreground,
const Color Border,
const Color  Shadow 
)
void ppl6::grafix::CFont::setDrawBorder ( bool  enable)
void ppl6::grafix::CFont::setDrawShadow ( bool  enable)
void ppl6::grafix::CFont::setDrawUnderline ( bool  enable)
void ppl6::grafix::CFont::setItalic ( bool  enable)
void ppl6::grafix::CFont::setMonospace ( bool  enable)
int ppl6::grafix::CFont::setName ( const CString name)
void ppl6::grafix::CFont::setOrientation ( Orientation  o)
void ppl6::grafix::CFont::setRotation ( double  degrees)
void ppl6::grafix::CFont::setShadowColor ( const Color c)
void ppl6::grafix::CFont::setSize ( int  size)
Color ppl6::grafix::CFont::shadowColor ( ) const
int ppl6::grafix::CFont::size ( ) const

Freundbeziehungen und Funktionsdokumentation

bool operator!= ( const CFont f1,
const CFont f2 
)
friend
bool operator== ( const CFont f1,
const CFont f2 
)
friend

Dokumentation der Datenelemente

Color ppl6::grafix::CFont::cBorder
private
Color ppl6::grafix::CFont::cForeground
private
Color ppl6::grafix::CFont::cShadow
private
ppluint8 ppl6::grafix::CFont::flags
private
ppluint16 ppl6::grafix::CFont::fontSize
private
CString ppl6::grafix::CFont::Name
private
ppluint8 ppl6::grafix::CFont::ori
private
double ppl6::grafix::CFont::rotationDegrees
private

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: