ScummVM API documentation
title.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 MM1_VIEWS_TITLE_H
23 #define MM1_VIEWS_TITLE_H
24 
25 #include "mm/mm1/events.h"
26 
27 namespace MM {
28 namespace MM1 {
29 namespace Views {
30 
31 #define SCREENS_COUNT 10
32 
33 class Title : public UIElement {
34 private:
38  void startSlideshow();
39 
40 protected:
41  Graphics::ManagedSurface _screens[SCREENS_COUNT];
42  int _screenNum = -1;
43  int _fadeIndex = 0;
44 
45 public:
46  Title();
47  virtual ~Title() {}
48 
52  bool msgFocus(const FocusMessage &msg) override;
53 
57  bool msgUnfocus(const UnfocusMessage &msg) override;
58 
62  void draw() override;
63 
67  void timeout() override;
68 
72  bool msgKeypress(const KeypressMessage &msg) override;
73 
77  bool msgAction(const ActionMessage &msg) override;
78 };
79 
80 } // namespace Views
81 } // namespace MM1
82 } // namespace MM
83 
84 #endif
Definition: managed_surface.h:51
bool msgAction(const ActionMessage &msg) override
bool msgKeypress(const KeypressMessage &msg) override
Definition: messages.h:56
void timeout() override
Definition: messages.h:49
bool msgUnfocus(const UnfocusMessage &msg) override
void draw() override
Definition: detection.h:27
Definition: messages.h:48
Definition: title.h:33
bool msgFocus(const FocusMessage &msg) override
Definition: events.h:68
Definition: messages.h:41