Oxygine  1
2g game engine
Public Types | Public Member Functions | Public Attributes | List of all members
oxygine::TextStyle Class Reference

Public Types

enum  HorizontalAlign {
  HALIGN_DEFAULT, HALIGN_LEFT, HALIGN_MIDDLE, HALIGN_CENTER = HALIGN_MIDDLE,
  HALIGN_RIGHT
}
 
enum  VerticalAlign {
  VALIGN_DEFAULT, VALIGN_BASELINE, VALIGN_TOP, VALIGN_MIDDLE,
  VALIGN_BOTTOM
}
 

Public Member Functions

TextStyle withFont (const ResFont *f) const
 
TextStyle alignTop () const
 
TextStyle alignBottom () const
 
TextStyle alignBaseline () const
 
TextStyle alignMiddleV () const
 
TextStyle alignLeft () const
 
TextStyle alignRight () const
 
TextStyle alignMiddleH () const
 
TextStyle alignMiddle () const
 
TextStyle withHOffset (int offset) const
 
TextStyle withKerning (int kerning) const
 
TextStyle withMultiline (bool multiline=true) const
 
TextStyle withColor (const Color &color) const
 
TextStyle withFontSize (int size) const
 
TextStyle withOutline (float outline) const
 
TextStyle withOutlineColor (const Color &color) const
 
TextStyle withWeight (float weight) const
 

Public Attributes

const ResFontfont
 
HorizontalAlign hAlign
 
VerticalAlign vAlign
 
int linesOffset
 
int kerning
 
bool multiline
 
bool breakLongWords
 
Color color
 
union {
   int   fontSize
 
   int   fontSize2Scale
 
}; 
 
float outline
 
Color outlineColor
 
float weight
 

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