ScummVM API documentation
csci_dialog.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 //=============================================================================
23 //
24 // Legacy built-in GUI dialogs and controls.
25 //
26 //=============================================================================
27 
28 #ifndef AGS_ENGINE_GUI_CSCI_DIALOG_H
29 #define AGS_ENGINE_GUI_CSCI_DIALOG_H
30 
31 #include "ags/shared/core/types.h"
32 #include "ags/engine/gui/gui_dialog_defines.h"
33 
34 namespace AGS3 {
35 
36 #define MAXCONTROLS 20
37 #define MAXSCREENWINDOWS 5
38 
39 int CSCIGetVersion();
40 int CSCIDrawWindow(int xx, int yy, int wid, int hit);
41 void CSCIEraseWindow(int handl);
42 int CSCIWaitMessage(CSCIMessage *cscim);
43 int CSCICreateControl(int typeandflags, int xx, int yy, int wii, int hii, const char *title);
44 void CSCIDeleteControl(int haa);
45 int CSCISendControlMessage(int haa, int mess, int wPar, NumberPtr lPar);
46 void multiply_up_to_game_res(int *x, int *y);
47 void multiply_up(int *x1, int *y1, int *x2, int *y2);
48 int checkcontrols();
49 int finddefaultcontrol(int flagmask);
50 int GetBaseWidth();
51 
52 } // namespace AGS3
53 
54 #endif
Definition: ags.h:40