ScummVM API documentation
gui_univ.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef M4_GUI_GUI_UNIV_H
24 #define M4_GUI_GUI_UNIV_H
25 
26 #include "m4/m4_types.h"
27 #include "m4/gui/gui.h"
28 
29 
30 namespace M4 {
31 
32 typedef void (*RefreshFunc)(void *myScreen, void *theRectList, void *destBuffer, int32 destX, int32 destY);
33 typedef void (*HotkeyCB)(void *myParam, void *myContent);
34 typedef bool (*EventHandler)(void *scrnContent, int32 eventType,
35  int32 parm1, int32 parm2, int32 parm3, bool *currScreen);
36 
37 struct Hotkey {
38  Hotkey *next;
39  int32 myKey;
40  HotkeyCB callback;
41 };
42 
46 struct ScreenContext {
47  ScreenContext *infront;
48  ScreenContext *behind;
49  int32 x1, y1, x2, y2;
50  int32 scrnType;
51  uint32 scrnFlags;
52  void *scrnContent;
53  RefreshFunc redraw;
54  EventHandler evtHandler;
55  Hotkey *scrnHotkeys;
56 };
57 
58 struct ButtonDrawRec {
59  void *dialog;
60  Buffer *scrBuf;
61  M4sprite *sprite;
62  int32 x1, y1, x2, y2;
63  int16 el_type;
64  bool fillMe, pressed;
65 };
66 
67 } // End of namespace M4
68 
69 #endif
Definition: gui_univ.h:58
Definition: m4_types.h:67
Definition: gui_univ.h:46
Definition: database.h:28
Definition: gui.h:31
Definition: gui_univ.h:37