diff options
author | Paul Gilbert | 2014-08-24 23:59:37 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-24 23:59:37 -0400 |
commit | 89993e128fe15efd16fdf89696682f0e24cb8593 (patch) | |
tree | 576a35e634063d47b36d59478f20107467a7d993 /engines/access/data.h | |
parent | f993c8dd46c240daa7022f359542e743d9c7a888 (diff) | |
download | scummvm-rg350-89993e128fe15efd16fdf89696682f0e24cb8593.tar.gz scummvm-rg350-89993e128fe15efd16fdf89696682f0e24cb8593.tar.bz2 scummvm-rg350-89993e128fe15efd16fdf89696682f0e24cb8593.zip |
ACCESS: Split font code into a separate file
Diffstat (limited to 'engines/access/data.h')
-rw-r--r-- | engines/access/data.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/engines/access/data.h b/engines/access/data.h index 3238dafa33..1d64a6ff86 100644 --- a/engines/access/data.h +++ b/engines/access/data.h @@ -82,74 +82,6 @@ public: FileIdent _vidSound; }; -struct FontVal { -public: - int _lo, _hi; - - FontVal() { _lo = _hi = 0; } -}; - -class Font { -private: - int _bitWidth; - int _height; - Common::Array<Graphics::Surface> _chars; -public: - static byte _fontColors[4]; -public: - Font(); - - ~Font(); - - /** - * Load the given font data - */ - void load(const int *fontIndex, const byte *fontData); - - /** - * Get the width of a given character - */ - int charWidth(char c); - - /** - * 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); - - /** - * Draw a string on a given surface - */ - void drawString(Graphics::Surface *s, const Common::String &msg, const Common::Point &pt); - - /** - * Draw a character on a given surface - */ - int drawChar(Graphics::Surface *s, char c, Common::Point &pt); -}; - -class FontManager { -public: - FontVal _charSet; - FontVal _charFor; - Common::Point _printOrg; - Common::Point _printStart; - int _printMaxX; - Font _font1; - Font _font2; -public: - FontManager(); -}; - } // End of namespace Access #endif /* ACCESS_DATA_H */ |