aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactext.h
diff options
context:
space:
mode:
authorstevenhoefel2017-01-17 22:15:43 +1100
committerstevenhoefel2017-01-17 22:15:43 +1100
commit837b3b22e59cdda0d82e53bb58206162e595d9bc (patch)
tree5fd0d33e4a4ef44c63eb33ca91821ed3151031b3 /graphics/macgui/mactext.h
parentfeab260c98b621a13043cd84193928b8f92797d3 (diff)
downloadscummvm-rg350-837b3b22e59cdda0d82e53bb58206162e595d9bc.tar.gz
scummvm-rg350-837b3b22e59cdda0d82e53bb58206162e595d9bc.tar.bz2
scummvm-rg350-837b3b22e59cdda0d82e53bb58206162e595d9bc.zip
GRAPHICS: MacText calculate longest string inside maxWidth and add alignment.
Diffstat (limited to 'graphics/macgui/mactext.h')
-rw-r--r--graphics/macgui/mactext.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.h b/graphics/macgui/mactext.h
index 21c063f896..28f0e50b76 100644
--- a/graphics/macgui/mactext.h
+++ b/graphics/macgui/mactext.h
@@ -25,12 +25,13 @@
#include "graphics/fontman.h"
#include "graphics/managed_surface.h"
+#include "graphics/font.h"
namespace Graphics {
class MacText {
public:
- MacText(Common::String s, const Graphics::Font *font, int fgcolor, int bgcolor, int maxWidth = -1);
+ MacText(Common::String s, const Graphics::Font *font, int fgcolor, int bgcolor, int maxWidth = -1, TextAlign textAlignment = kTextAlignLeft);
void setInterLinear(int interLinear) { _interLinear = interLinear; }
@@ -61,6 +62,8 @@ private:
Graphics::ManagedSurface *_surface;
bool _fullRefresh;
+
+ TextAlign _textAlignment;
};
} // End of namespace Graphics