28 #ifndef _CEGUIFontGlyph_h_
29 #define _CEGUIFontGlyph_h_
31 #include "CEGUI/Image.h"
59 Sizef getSize(
float x_scale,
float y_scale)
const
60 {
return Sizef(getWidth(x_scale), getHeight(y_scale)); }
63 float getWidth(
float x_scale)
const
64 {
return d_image->getRenderedSize().d_width * x_scale; }
67 float getHeight(
float y_scale)
const
68 {
return d_image->getRenderedSize().d_height * y_scale; }
77 float getRenderedAdvance(
float x_scale)
const
78 {
return (d_image->getRenderedSize().d_width +
79 d_image->getRenderedOffset().d_x) * x_scale; }
90 float getAdvance(
float x_scale = 1.0)
const
91 {
return d_advance * x_scale; }
94 void setAdvance(
float advance)
95 { d_advance = advance; }
102 void setValid(
bool valid)
120 #endif // end of guard _CEGUIFontGlyph_h_