PPL7-Icon Patrick's Programming Library Version 7.0.0 - Dokumentation
ppl7::grafix::Font Klassenreferenz

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

Öffentliche Typen

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

Öffentliche Methoden

 Font ()
 
 Font (const Font &other)
 
bool antialias () const
 
bool bold () const
 
Color borderColor () const
 
Rect boundary (const String &text, int x=0, int y=0) const
 
Color color () const
 
bool drawBorder () const
 
bool drawShadow () const
 
bool drawUnderline () const
 
bool italic () const
 
Size measure (const String &text) const
 
bool monospace () const
 
const Stringname () const
 
Fontoperator= (const Font &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 String &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
 
String Name
 
ppluint8 ori
 
double rotationDegrees
 

Freundbeziehungen

bool operator!= (const Font &f1, const Font &f2)
 
bool operator== (const Font &f1, const Font &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

ppl7::grafix::Font::Font ( )
ppl7::grafix::Font::Font ( const Font other)

Dokumentation der Elementfunktionen

bool ppl7::grafix::Font::antialias ( ) const
bool ppl7::grafix::Font::bold ( ) const
Color ppl7::grafix::Font::borderColor ( ) const
Rect ppl7::grafix::Font::boundary ( const String text,
int  x = 0,
int  y = 0 
) const
Color ppl7::grafix::Font::color ( ) const
bool ppl7::grafix::Font::drawBorder ( ) const
bool ppl7::grafix::Font::drawShadow ( ) const
bool ppl7::grafix::Font::drawUnderline ( ) const
bool ppl7::grafix::Font::italic ( ) const
Size ppl7::grafix::Font::measure ( const String text) const
bool ppl7::grafix::Font::monospace ( ) const
const String & ppl7::grafix::Font::name ( ) const
Font & ppl7::grafix::Font::operator= ( const Font other)
Font::Orientation ppl7::grafix::Font::orientation ( ) const
double ppl7::grafix::Font::rotation ( ) const
void ppl7::grafix::Font::setAntialias ( bool  enable)
void ppl7::grafix::Font::setBold ( bool  enable)
void ppl7::grafix::Font::setBorderColor ( const Color c)
void ppl7::grafix::Font::setColor ( const Color c)
void ppl7::grafix::Font::setColors ( const Color Foreground,
const Color Border,
const Color Shadow 
)
void ppl7::grafix::Font::setDrawBorder ( bool  enable)
void ppl7::grafix::Font::setDrawShadow ( bool  enable)
void ppl7::grafix::Font::setDrawUnderline ( bool  enable)
void ppl7::grafix::Font::setItalic ( bool  enable)
void ppl7::grafix::Font::setMonospace ( bool  enable)
int ppl7::grafix::Font::setName ( const String name)
void ppl7::grafix::Font::setOrientation ( Orientation  o)
void ppl7::grafix::Font::setRotation ( double  degrees)
void ppl7::grafix::Font::setShadowColor ( const Color c)
void ppl7::grafix::Font::setSize ( int  size)
Color ppl7::grafix::Font::shadowColor ( ) const
int ppl7::grafix::Font::size ( ) const

Freundbeziehungen und Funktionsdokumentation

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

Dokumentation der Datenelemente

Color ppl7::grafix::Font::cBorder
private
Color ppl7::grafix::Font::cForeground
private
Color ppl7::grafix::Font::cShadow
private
ppluint8 ppl7::grafix::Font::flags
private
ppluint16 ppl7::grafix::Font::fontSize
private
String ppl7::grafix::Font::Name
private
ppluint8 ppl7::grafix::Font::ori
private
double ppl7::grafix::Font::rotationDegrees
private

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