summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-19 17:48:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-19 17:48:34 +0300
commit3203c6bd824cd8ac4e86374afafe01e45d358a40 (patch)
tree39b922bedf17bc2629d9b00da84a4024332c6243 /src/gui/sdlfont.h
parente7c83487949d173e230e8868ef5410a1ac5a9398 (diff)
downloadmv-3203c6bd824cd8ac4e86374afafe01e45d358a40.tar.gz
mv-3203c6bd824cd8ac4e86374afafe01e45d358a40.tar.bz2
mv-3203c6bd824cd8ac4e86374afafe01e45d358a40.tar.xz
mv-3203c6bd824cd8ac4e86374afafe01e45d358a40.zip
improve SDLFont class.
Diffstat (limited to 'src/gui/sdlfont.h')
-rw-r--r--src/gui/sdlfont.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/gui/sdlfont.h b/src/gui/sdlfont.h
index f7fa15d6b..09b93f87a 100644
--- a/src/gui/sdlfont.h
+++ b/src/gui/sdlfont.h
@@ -114,36 +114,30 @@ class TextChunkList final
class SDLFont final : public gcn::Font
{
public:
- /**
- * Constructor.
- *
- * @param filename Font filename.
- * @param size Font size.
- */
- SDLFont(std::string filename, const int size, const int style = 0);
+ SDLFont(std::string filename,
+ const int size,
+ const int style = 0);
A_DELETE_COPY(SDLFont)
- /**
- * Destructor.
- */
~SDLFont();
- void loadFont(std::string filename, const int size,
+ void loadFont(std::string filename,
+ const int size,
const int style = 0);
- virtual int getWidth(const std::string &text) const A_WARN_UNUSED;
+ int getWidth(const std::string &text) const override A_WARN_UNUSED;
- virtual int getHeight() const A_WARN_UNUSED;
+ int getHeight() const override A_WARN_UNUSED;
- TextChunkList *getCache() A_WARN_UNUSED;
+ TextChunkList *getCache() const A_WARN_UNUSED;
/**
* @see Font::drawString
*/
void drawString(gcn::Graphics *const graphics,
const std::string &text,
- const int x, const int y);
+ const int x, const int y) override;
void clear();