ScummVM API documentation
about.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 ABOUT_DIALOG_H
23 #define ABOUT_DIALOG_H
24 
25 #include "gui/dialog.h"
26 #include "common/str.h"
27 #include "common/ustr.h"
28 #include "common/array.h"
29 #include "common/keyboard.h"
30 
31 namespace GUI {
32 
33 class EEHandler;
34 
35 class AboutDialog : public Dialog {
36 protected:
37  int _scrollPos;
38  uint32 _scrollTime;
40  uint32 _lineHeight;
41  bool _willClose;
42  bool _autoScroll;
43 
44  int _xOff, _yOff;
45 
46  void addLine(const Common::U32String &str);
47 
48  EEHandler *_eeHandler;
49 
50 public:
51  AboutDialog(bool inGame = false);
52 
53  void open() override;
54  void close() override;
55  void drawDialog(DrawLayer layerToDraw) override;
56  void handleTickle() override;
57  void handleMouseUp(int x, int y, int button, int clickCount) override;
58  void handleMouseWheel(int x, int y, int direction) override;
59  void handleKeyDown(Common::KeyState state) override;
60  void handleKeyUp(Common::KeyState state) override;
61 
62  void reflowLayout() override;
63 };
64 
65 } // End of namespace GUI
66 
67 #endif
Definition: system.h:46
Definition: about.h:35
void drawDialog(DrawLayer layerToDraw) override
Definition: ustr.h:57
Definition: dialog.h:49
Definition: keyboard.h:294