ScummVM API documentation
stxt.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 DIRECTOR_STXT_H
23#define DIRECTOR_STXT_H
24
25namespace Common {
26class ReadStreamEndian;
27class SeekableWriteStream;
28}
29
30namespace Director {
31
32class Cast;
33
34struct FontStyle {
35 uint32 formatStartOffset;
36 uint16 height;
37 uint16 ascent;
38
39 uint16 fontId;
40 byte textSlant;
41
42 uint16 fontSize;
43
44 uint16 r, g, b;
45
46 FontStyle();
47 void read(Common::ReadStreamEndian &textStream, Cast *cast);
48 void write(Common::SeekableWriteStream *writeStream);
49};
50
51class Stxt {
52public:
53 Stxt(Cast *cast, Common::SeekableReadStreamEndian &textStream);
54
55public:
56 Cast *_cast;
57 Common::U32String _ftext;
58 Common::U32String _ptext;
59 Common::String _rtext;
60 TextType _textType;
61 TextAlignType _textAlign;
62 uint8 _textShadow;
63
64 uint32 _size;
65
66 FontStyle _style;
67 uint16 _unk1f;
68 uint16 _unk2f;
69 byte _unk3f;
70};
71
72} // End of namespace Director
73
74#endif
Definition: stream.h:854
Definition: stream.h:944
Definition: stream.h:351
Definition: str.h:59
Definition: ustr.h:57
Definition: cast.h:88
Definition: stxt.h:51
Definition: algorithm.h:29
Definition: stxt.h:34