27 #ifndef _CEGUIFontGlyph_h_
28 #define _CEGUIFontGlyph_h_
30 #include "CEGUI/Image.h"
58 Sizef getSize(
float x_scale,
float y_scale)
const
59 {
return Sizef(getWidth(x_scale), getHeight(y_scale)); }
62 float getWidth(
float x_scale)
const
63 {
return d_image->getRenderedSize().d_width * x_scale; }
66 float getHeight(
float y_scale)
const
67 {
return d_image->getRenderedSize().d_height * y_scale; }
76 float getRenderedAdvance(
float x_scale)
const
77 {
return (d_image->getRenderedSize().d_width +
78 d_image->getRenderedOffset().d_x) * x_scale; }
89 float getAdvance(
float x_scale = 1.0)
const
90 {
return d_advance * x_scale; }
93 void setAdvance(
float advance)
94 { d_advance = advance; }
101 void setValid(
bool valid)
119 #endif // end of guard _CEGUIFontGlyph_h_