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