ScummVM API documentation
main_menu.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_MAIN_MENU_H
26 #define BURIED_MAIN_MENU_H
27 
28 #include "buried/window.h"
29 
30 namespace Graphics {
31 struct Surface;
32 }
33 
34 namespace Buried {
35 
36 class MainMenuWindow : public Window {
37 public:
38  MainMenuWindow(BuriedEngine *vm, Window *parent);
39  ~MainMenuWindow();
40 
41  bool showMainMenu();
42 
43  void onPaint();
44  bool onEraseBackground();
45  void onLButtonUp(const Common::Point &point, uint flags);
46  void onLButtonDown(const Common::Point &point, uint flags);
47  void onMouseMove(const Common::Point &point, uint flags);
48 
49 private:
50  Common::Rect _buttons[5];
51  Common::Rect _playMode[2];
52  Common::Rect _intro[2];
53 
54  int _curButton;
55  bool _showIntro;
56  bool _walkthrough;
57  bool _buttonDrawnDown;
58  bool _disableDrawing;
59 
60  Graphics::Surface *_background;
61  Graphics::Surface *_depressedPlayMode;
62  Graphics::Surface *_depressedPlayIntro;
63  Graphics::Surface *_depressedOverview;
64  Graphics::Surface *_depressedNewGame;
65  Graphics::Surface *_depressedRestoreGame;
66  Graphics::Surface *_depressedCredits;
67  Graphics::Surface *_depressedQuit;
68 };
69 
70 } // End of namespace Buried
71 
72 #endif
Definition: window.h:37
Definition: surface.h:67
Definition: rect.h:144
Definition: main_menu.h:36
Definition: buried.h:67
Definition: agent_evaluation.h:31
Definition: formatinfo.h:28
Definition: rect.h:45