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