ScummVM API documentation
livetext.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  * Additional copyright for this file:
8  * Copyright (C) 1995 Presto Studios, Inc.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19 
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24 
25 #ifndef BURIED_LIVETEXT_H
26 #define BURIED_LIVETEXT_H
27 
28 #include "common/str.h"
29 
30 #include "buried/window.h"
31 
32 namespace Graphics {
33 class Font;
34 }
35 
36 namespace Buried {
37 
38 class LiveTextWindow : public Window {
39 public:
40  LiveTextWindow(BuriedEngine *vm, Window *parent);
41  ~LiveTextWindow();
42 
43  bool updateLiveText(const Common::String &text = "", bool notifyUser = true);
44  bool updateTranslationText(const Common::String &text = "", bool notifyUser = true);
45 
46  void translateBiochipClosing();
47 
48  void onPaint();
49  void onEnable(bool enable);
50 
51 private:
52  Graphics::Font *_font;
53  int _fontHeight;
54  bool _textTranslation;
55  Common::String _text;
56 };
57 
58 } // End of namespace Buried
59 
60 #endif
Definition: window.h:37
Definition: str.h:59
Definition: font.h:83
Definition: livetext.h:38
Definition: buried.h:67
Definition: agent_evaluation.h:31
Definition: formatinfo.h:28