28 #ifndef _CEGUIFontGlyph_h_
29 #define _CEGUIFontGlyph_h_
31 #include "CEGUIImage.h"
58 {
return d_image->getImageset(); }
62 {
return Size(getWidth(x_scale), getHeight(y_scale)); }
66 {
return d_image->getWidth() * x_scale; }
70 {
return d_image->getHeight() * y_scale; }
80 {
return (d_image->getWidth() + d_image->getOffsetX()) * x_scale; }
92 {
return d_advance * x_scale; }
96 { d_advance = advance; }
104 const Image* d_image;
111 #endif // end of guard _CEGUIFontGlyph_h_
Size getSize(float x_scale, float y_scale) const
Return the scaled pixel size of the glyph.
Definition: CEGUIFontGlyph.h:61
float getRenderedAdvance(float x_scale) const
Return the rendered advance value for this glyph.
Definition: CEGUIFontGlyph.h:79
FontGlyph(float advance=0.0f, const Image *image=0)
Constructor.
Definition: CEGUIFontGlyph.h:47
Class that represents a single Image of an Imageset.
Definition: CEGUIImage.h:57
float getAdvance(float x_scale=1.0) const
Return the horizontal advance value for the glyph.
Definition: CEGUIFontGlyph.h:91
Class that holds the size (width & height) of something.
Definition: CEGUISize.h:43
Offers functions to define, access, and draw, a set of image components on a single graphical surface...
Definition: CEGUIImageset.h:63
void setAdvance(float advance)
Set the horizontal advance value for the glyph.
Definition: CEGUIFontGlyph.h:95
internal class representing a single font glyph.
Definition: CEGUIFontGlyph.h:43
void setImage(const Image *image)
Set the CEGUI::Image object rendered for this glyph.
Definition: CEGUIFontGlyph.h:99
const Imageset * getImageset() const
Return the parent CEGUI::Imageset object for this glyph.
Definition: CEGUIFontGlyph.h:57
float getWidth(float x_scale) const
Return the scaled width of the glyph.
Definition: CEGUIFontGlyph.h:65
const Image * getImage() const
Return the CEGUI::Image object rendered for this glyph.
Definition: CEGUIFontGlyph.h:53
float getHeight(float y_scale) const
Return the scaled height of the glyph.
Definition: CEGUIFontGlyph.h:69