From c0f82d351894df16e23690b4361e66bed0fb6f84 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 12 Nov 2008 14:30:16 +0000 Subject: Renamed Graphics::TextAlignment -> Graphics::TextAlign and merged it with GUI::ThemeEngine::TextAlignVertical svn-id: r35023 --- graphics/font.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'graphics/font.h') 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. -- cgit v1.2.3