From 3203c6bd824cd8ac4e86374afafe01e45d358a40 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 19 May 2013 17:48:34 +0300 Subject: improve SDLFont class. --- src/gui/sdlfont.h | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) (limited to 'src/gui/sdlfont.h') 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(); -- cgit v1.2.3-60-g2f50