Made getWidth and getHeight const.

This commit is contained in:
Robert Osfield
2003-11-07 09:00:22 +00:00
parent d3251dc9d8
commit 8bbbd1fc70
2 changed files with 4 additions and 4 deletions

View File

@@ -66,8 +66,8 @@ public:
/** Set the pixel width and height hint.*/
virtual void setSize(unsigned int width, unsigned int height);
unsigned int getWidth();
unsigned int getHeight();
unsigned int getWidth() const;
unsigned int getHeight() const;
/** Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint.*/
virtual osg::Vec2 getKerning(unsigned int leftcharcode,unsigned int rightcharcode, KerningType kerningType);

View File

@@ -122,12 +122,12 @@ void Font::setSize(unsigned int width, unsigned int height)
if (_implementation.valid()) _implementation->setSize(width, height);
}
unsigned int Font::getWidth()
unsigned int Font::getWidth() const
{
return _width;
}
unsigned int Font::getHeight()
unsigned int Font::getHeight() const
{
return _height;
}