diff options
Diffstat (limited to 'src/gui/sdlfont.h')
-rw-r--r-- | src/gui/sdlfont.h | 24 |
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(); |