Crazy Eddie's GUI System
0.8.7
|
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_
float getRenderedAdvance(float x_scale) const
Return the rendered advance value for this glyph.
Definition: FontGlyph.h:76
void setValid(bool valid)
mark the FontGlyph as valid
Definition: FontGlyph.h:101
float getHeight(float y_scale) const
Return the scaled height of the glyph.
Definition: FontGlyph.h:66
float getWidth(float x_scale) const
Return the scaled width of the glyph.
Definition: FontGlyph.h:62
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
bool isValid() const
return whether the FontGlyph is marked as valid
Definition: FontGlyph.h:105
Definition: MemoryAllocatedObject.h:110
Sizef getSize(float x_scale, float y_scale) const
Return the scaled pixel size of the glyph.
Definition: FontGlyph.h:58
void setAdvance(float advance)
Set the horizontal advance value for the glyph.
Definition: FontGlyph.h:93
Image * getImage() const
Return the CEGUI::Image object rendered for this glyph.
Definition: FontGlyph.h:54
FontGlyph(float advance=0.0f, Image *image=0, bool valid=false)
Constructor.
Definition: FontGlyph.h:47
void setImage(Image *image)
Set the CEGUI::Image object rendered for this glyph.
Definition: FontGlyph.h:97
internal class representing a single font glyph.
Definition: FontGlyph.h:44
Interface for Image.
Definition: Image.h:161
float getAdvance(float x_scale=1.0) const
Return the horizontal advance value for the glyph.
Definition: FontGlyph.h:89