ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gui_status.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 /* These are return codes for widget event functions */
23 
24 #ifndef NUVIE_GUI_GUI_STATUS_H
25 #define NUVIE_GUI_GUI_STATUS_H
26 
27 namespace Ultima {
28 namespace Nuvie {
29 
30 typedef enum {
31  GUI_QUIT, /* Close the GUI */
32  GUI_REDRAW, /* The GUI needs to be redrawn */
33  GUI_YUM, /* The event was eaten by the widget */
34  GUI_PASS, /* The event should be passed on */
35  GUI_DRAG_AND_DROP /* Drag and Drop sequence initiated by GUI */
36 } GUI_status;
37 
38 typedef enum {
39  WIDGET_VISIBLE,
40  WIDGET_HIDDEN,
41  WIDGET_DELETED
42 } WIDGET_status;
43 
44 /* GUI idle function -- run when no events pending */
45 typedef GUI_status(*GUI_IdleProc)(void);
46 
47 } // End of namespace Nuvie
48 } // End of namespace Ultima
49 
50 #endif
Definition: detection.h:27