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
25
namespace
Common
{
26
class
ReadStreamEndian;
27
class
SeekableWriteStream;
28
}
29
30
namespace
Director
{
31
32
class
Cast;
33
34
struct
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
51
class
Stxt
{
52
public
:
53
Stxt
(
Cast
*cast,
Common::SeekableReadStreamEndian
&textStream);
54
55
public
:
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
Director::Cast
Definition:
cast.h:87
Common::ReadStreamEndian
Definition:
stream.h:854
Common::String
Definition:
str.h:59
Director::Stxt
Definition:
stxt.h:51
Director
Definition:
archive.h:36
Common::U32String
Definition:
ustr.h:57
Common
Definition:
algorithm.h:29
Common::SeekableWriteStream
Definition:
stream.h:351
Common::SeekableReadStreamEndian
Definition:
stream.h:944
Director::FontStyle
Definition:
stxt.h:34
engines
director
stxt.h
Generated on Wed Sep 3 2025 09:09:02 for ScummVM API documentation by
1.8.13