diff options
author | Paul Gilbert | 2014-08-16 23:18:53 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-16 23:18:53 -0400 |
commit | ff01ee6807ccd6e5a71ddc945196d68b87f3aa65 (patch) | |
tree | 598bff2258c80d09367aae7b7598e2b0c4b0796a /engines/access/data.h | |
parent | f784b4efba7518806195f96d0177ccdc6e2dbaf8 (diff) | |
download | scummvm-rg350-ff01ee6807ccd6e5a71ddc945196d68b87f3aa65.tar.gz scummvm-rg350-ff01ee6807ccd6e5a71ddc945196d68b87f3aa65.tar.bz2 scummvm-rg350-ff01ee6807ccd6e5a71ddc945196d68b87f3aa65.zip |
ACCESS: Added code for bubble box size calculations
Diffstat (limited to 'engines/access/data.h')
-rw-r--r-- | engines/access/data.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/access/data.h b/engines/access/data.h index 6d783b15dc..910e2523d1 100644 --- a/engines/access/data.h +++ b/engines/access/data.h @@ -107,6 +107,17 @@ public: * Get the width of a given string */ int stringWidth(const Common::String &msg); + + /** + * Get a partial string that will fit in a given width + * @param s Source string. Modified to remove line + * @param maxWidth Maximum width allowed + * @param line Output line + * @param width Calculated width of returned line + * @returns True if last line + */ + bool getLine(Common::String &s, int maxWidth, Common::String &line, int &width); + }; class FontManager { |