ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
charset_v7.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef SCUMM_CHARSET_V7_H
23 #define SCUMM_CHARSET_V7_H
24 
25 #ifdef ENABLE_SCUMM_7_8
26 
27 #include "common/rect.h"
28 
29 namespace Scumm {
30 
31 enum TextStyleFlags {
32  kStyleAlignLeft = 0x00,
33  kStyleAlignCenter = 0x01,
34  kStyleAlignRight = 0x02,
35  kStyleWordWrap = 0x04
36  // There are more flags, but I'll add them only as needed
37 };
38 
39 class GlyphRenderer_v7 {
40 public:
41  virtual ~GlyphRenderer_v7() {};
42 
43  virtual int draw2byte(byte *buffer, Common::Rect &clipRect, int x, int y, int pitch, int16 col, uint16 chr) = 0;
44  virtual int drawCharV7(byte *buffer, Common::Rect &clipRect, int x, int y, int pitch, int16 col, TextStyleFlags flags, byte chr) = 0;
45  virtual int getCharWidth(uint16 chr) const = 0;
46  virtual int getCharHeight(uint16 chr) const = 0;
47  virtual int getFontHeight() const = 0;
48  virtual int setFont(int id) = 0;
49  virtual bool newStyleWrapping() const = 0;
50 };
51 
52 } // End of namespace Scumm
53 
54 #endif
55 #endif
Definition: rect.h:144
Definition: actor.h:30