summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-28 01:59:04 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-28 01:59:04 +0300
commitc79403e1341ac533df1771b866d1f5cee15e12b5 (patch)
tree5bed6dfb44f7fce0432bd7a7a28d2d23db07ce80 /src/gui/sdlfont.h
parent7c79aa2b8e484319e3e511fa21db6d2448347024 (diff)
downloadManaVerse-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.gz
ManaVerse-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.bz2
ManaVerse-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.xz
ManaVerse-c79403e1341ac533df1771b866d1f5cee15e12b5.zip
Add const to more classes.
Diffstat (limited to 'src/gui/sdlfont.h')
-rw-r--r--src/gui/sdlfont.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/sdlfont.h b/src/gui/sdlfont.h
index a7bea343f..a736c70e0 100644
--- a/src/gui/sdlfont.h
+++ b/src/gui/sdlfont.h
@@ -53,16 +53,17 @@ class SDLFont : public gcn::Font
* @param filename Font filename.
* @param size Font size.
*/
- SDLFont(std::string filename, int size, int style = 0);
+ SDLFont(std::string filename, const int size, const int style = 0);
/**
* Destructor.
*/
~SDLFont();
- void loadFont(std::string filename, int size, int style = 0);
+ void loadFont(std::string filename, const int size,
+ const int style = 0);
- void createSDLTextChunk(SDLTextChunk *chunk);
+ void createSDLTextChunk(SDLTextChunk *const chunk);
virtual int getWidth(const std::string &text) const;
@@ -74,9 +75,9 @@ class SDLFont : public gcn::Font
/**
* @see Font::drawString
*/
- void drawString(gcn::Graphics *graphics,
+ void drawString(gcn::Graphics *const graphics,
const std::string &text,
- int x, int y);
+ const int x, const int y);
void clear();