ScummVM API documentation
gui_vmng.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_VMNG_H
24 #define M4_GUI_GUI_VMNG_H
25 
26 #include "m4/m4_types.h"
27 #include "m4/gui/gui_univ.h"
28 #include "m4/gui/gui_vmng_core.h"
29 #include "m4/gui/gui_vmng_rectangles.h"
30 #include "m4/gui/gui_vmng_screen.h"
31 
32 namespace M4 {
33 
34 enum {
35  SCRN_DLG = 0, SCRN_BUF, SCRN_TEXT, SCRN_TRANS
36 };
37 enum {
38  SCRN_ANY = 0, SCRN_ACTIVE, SCRN_INACTIVE, SCRN_UNDEFN
39 };
40 
41 #define SF_LAYER 0x000f
42 #define SF_BACKGRND 0x0000
43 #define SF_DRIFTER 0x0001
44 #define SF_FLOATER 0x0002
45 #define SF_SURFACE 0x0003
46 #define SF_MOUSE 0x000e
47 
48 #define SF_GET_NONE 0x0000
49 #define SF_GET_KEY 0x0010
50 #define SF_GET_MOUSE 0x0020
51 #define SF_GET_ALL 0x0030
52 
53 #define SF_BLOCK_NONE 0x0000
54 #define SF_BLOCK_KEY 0x0040
55 #define SF_BLOCK_MOUSE 0x0080
56 #define SF_BLOCK_ALL 0x00c0
57 
58 #define SF_IMMOVABLE 0x0100 // if set, it ain't draggable
59 #define SF_OFFSCRN 0x0200 // can be dragged off screen, if it's draggable
60 #define SF_TRANSPARENT 0x0400 // if the screen is transparent
61 
62 #define SF_DEFAULT SF_DRIFTER | SF_GET_ALL | SF_BLOCK_NONE
63 #define SF_ALERT SF_FLOATER | SF_GET_ALL | SF_BLOCK_ALL
64 
65 } // End of namespace M4
66 
67 #endif
Definition: database.h:28