24 #ifndef __PMRealGlyphPoint__ 25 #define __PMRealGlyphPoint__ 28 #include "CTextEnum.h" 48 { Set(kInvalidGlyphID, 0.0, 0.0); }
49 explicit PMRealGlyphPoint(Text::GlyphID glyphID,
float x = 0.0,
float y = 0.0)
50 { Set(glyphID, x, y); }
52 void Set(Text::GlyphID glyphID,
float x = 0.0,
float y = 0.0)
53 { fPoint.glyphID = glyphID; fPoint.xPosition = x; fPoint.yPosition = y; }
56 { fPoint.xPosition = x; }
58 { fPoint.yPosition = y; }
60 { fPoint.xPosition = ::ToFloat(x); }
62 { fPoint.yPosition = ::ToFloat(y); }
64 Text::GlyphID GetGlyphID()
const 65 {
return fPoint.glyphID; }
66 Text::GlyphID& GlyphID()
67 {
return fPoint.glyphID; }
69 float GetXPosition()
const 70 {
return fPoint.xPosition; }
71 float GetYPosition()
const 72 {
return fPoint.yPosition; }
75 {
return fPoint.xPosition; }
77 {
return fPoint.yPosition; }
80 { fPoint.yPosition += other.fPoint.yPosition;
81 fPoint.xPosition += other.fPoint.xPosition;