ScummVM API documentation
widget_text.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 SHERLOCK_TATTOO_WIDGET_TEXT_H
23 #define SHERLOCK_TATTOO_WIDGET_TEXT_H
24 
25 #include "common/scummsys.h"
26 #include "sherlock/tattoo/widget_base.h"
27 
28 namespace Sherlock {
29 
30 class SherlockEngine;
31 
32 namespace Tattoo {
33 
34 class WidgetText: public WidgetBase {
35 private:
39  void centerWindowOnSpeaker(int speaker);
40 
44  void render(const Common::String &str);
45 public:
46  Common::String _remainingText;
47 public:
49  ~WidgetText() override {}
50 
54  void load(const Common::String &str, int speaker = -1);
55 };
56 
57 class WidgetMessage : public WidgetBase {
58 private:
59  int _menuCounter;
60 public:
62  ~WidgetMessage() override {}
63 
67  void load(const Common::String &str, int time);
68 
72  void handleEvents() override;
73 };
74 
75 } // End of namespace Tattoo
76 
77 } // End of namespace Sherlock
78 
79 #endif
void load(const Common::String &str, int speaker=-1)
Definition: str.h:59
Definition: animation.h:29
Definition: widget_text.h:57
Definition: sherlock.h:76
Definition: widget_text.h:34
virtual void handleEvents()
Definition: widget_base.h:139
Definition: widget_base.h:37