27 #ifndef _CEGUIFontGlyph_h_ 
   28 #define _CEGUIFontGlyph_h_ 
   30 #include "CEGUI/Image.h" 
   59     { 
return Sizef(getWidth(x_scale), getHeight(y_scale)); }
 
   63     { 
return d_image->getRenderedSize().d_width * x_scale; }
 
   67     { 
return d_image->getRenderedSize().d_height * y_scale; }
 
   77     { 
return (d_image->getRenderedSize().d_width +
 
   78               d_image->getRenderedOffset().d_x) * x_scale; }
 
   90     { 
return d_advance * x_scale; }
 
   94     { d_advance = advance; }
 
  119 #endif  // end of guard _CEGUIFontGlyph_h_ 
Image * getImage() const 
Return the CEGUI::Image object rendered for this glyph. 
Definition: FontGlyph.h:54
 
float getRenderedAdvance(float x_scale) const 
Return the rendered advance value for this glyph. 
Definition: FontGlyph.h:76
 
Definition: MemoryAllocatedObject.h:109
 
Interface for Image. 
Definition: Image.h:158
 
Main namespace for Crazy Eddie's GUI Library. 
Definition: arch_overview.dox:1
 
Sizef getSize(float x_scale, float y_scale) const 
Return the scaled pixel size of the glyph. 
Definition: FontGlyph.h:58
 
float getAdvance(float x_scale=1.0) const 
Return the horizontal advance value for the glyph. 
Definition: FontGlyph.h:89
 
void setValid(bool valid)
mark the FontGlyph as valid 
Definition: FontGlyph.h:101
 
void setAdvance(float advance)
Set the horizontal advance value for the glyph. 
Definition: FontGlyph.h:93
 
void setImage(Image *image)
Set the CEGUI::Image object rendered for this glyph. 
Definition: FontGlyph.h:97
 
FontGlyph(float advance=0.0f, Image *image=0, bool valid=false)
Constructor. 
Definition: FontGlyph.h:47
 
internal class representing a single font glyph. 
Definition: FontGlyph.h:42
 
bool isValid() const 
return whether the FontGlyph is marked as valid 
Definition: FontGlyph.h:105
 
float getWidth(float x_scale) const 
Return the scaled width of the glyph. 
Definition: FontGlyph.h:62
 
float getHeight(float y_scale) const 
Return the scaled height of the glyph. 
Definition: FontGlyph.h:66