diff options
author | Max Horn | 2008-11-12 14:30:16 +0000 |
---|---|---|
committer | Max Horn | 2008-11-12 14:30:16 +0000 |
commit | c0f82d351894df16e23690b4361e66bed0fb6f84 (patch) | |
tree | f6ddb6d08e8dbe0637a5e5dcfb13d4a4fa5c21c0 /graphics/font.h | |
parent | 144be21bed1001c4a72739ef7656908cbf71e909 (diff) | |
download | scummvm-rg350-c0f82d351894df16e23690b4361e66bed0fb6f84.tar.gz scummvm-rg350-c0f82d351894df16e23690b4361e66bed0fb6f84.tar.bz2 scummvm-rg350-c0f82d351894df16e23690b4361e66bed0fb6f84.zip |
Renamed Graphics::TextAlignment -> Graphics::TextAlign and merged it with GUI::ThemeEngine::TextAlignVertical
svn-id: r35023
Diffstat (limited to 'graphics/font.h')
-rw-r--r-- | graphics/font.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics/font.h b/graphics/font.h index 3911e6d32c..5667fcd8f3 100644 --- a/graphics/font.h +++ b/graphics/font.h @@ -34,11 +34,11 @@ class SeekableReadStream; namespace Graphics { -// Text alignment modes for drawString() -enum TextAlignment { - kTextAlignLeft, - kTextAlignCenter, - kTextAlignRight +/** Text alignment modes */ +enum TextAlign { + kTextAlignLeft, //!< Text should be aligned to the left + kTextAlignCenter, //!< Text should be centered + kTextAlignRight //!< Text should be aligned to the right }; /** @@ -57,7 +57,7 @@ public: virtual int getCharWidth(byte chr) const = 0; virtual void drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const = 0; - void drawString(Surface *dst, const Common::String &str, int x, int y, int w, uint32 color, TextAlignment align = kTextAlignLeft, int deltax = 0, bool useEllipsis = true) const; + void drawString(Surface *dst, const Common::String &str, int x, int y, int w, uint32 color, TextAlign align = kTextAlignLeft, int deltax = 0, bool useEllipsis = true) const; /** * Compute and return the width the string str has when rendered using this font. |