ScummVM API documentation
gui_control.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 #ifndef AGS_ENGINE_AC_GUICONTROL_H
23 #define AGS_ENGINE_AC_GUICONTROL_H
24 
25 #include "ags/shared/gui/gui_object.h"
26 #include "ags/shared/gui/gui_button.h"
27 #include "ags/shared/gui/gui_inv.h"
28 #include "ags/shared/gui/gui_label.h"
29 #include "ags/shared/gui/gui_listbox.h"
30 #include "ags/shared/gui/gui_slider.h"
31 #include "ags/shared/gui/gui_textbox.h"
32 #include "ags/engine/ac/dynobj/script_gui.h"
33 
34 namespace AGS3 {
35 
36 using AGS::Shared::GUIObject;
37 using AGS::Shared::GUIButton;
38 using AGS::Shared::GUIInvWindow;
39 using AGS::Shared::GUILabel;
40 using AGS::Shared::GUIListBox;
41 using AGS::Shared::GUISlider;
42 using AGS::Shared::GUITextBox;
43 
44 GUIObject *GetGUIControlAtLocation(int xx, int yy);
45 int GUIControl_GetVisible(GUIObject *guio);
46 void GUIControl_SetVisible(GUIObject *guio, int visible);
47 int GUIControl_GetClickable(GUIObject *guio);
48 void GUIControl_SetClickable(GUIObject *guio, int enabled);
49 int GUIControl_GetEnabled(GUIObject *guio);
50 void GUIControl_SetEnabled(GUIObject *guio, int enabled);
51 int GUIControl_GetID(GUIObject *guio);
52 ScriptGUI *GUIControl_GetOwningGUI(GUIObject *guio);
53 GUIButton *GUIControl_GetAsButton(GUIObject *guio);
54 GUIInvWindow *GUIControl_GetAsInvWindow(GUIObject *guio);
55 GUILabel *GUIControl_GetAsLabel(GUIObject *guio);
56 GUIListBox *GUIControl_GetAsListBox(GUIObject *guio);
57 GUISlider *GUIControl_GetAsSlider(GUIObject *guio);
58 GUITextBox *GUIControl_GetAsTextBox(GUIObject *guio);
59 int GUIControl_GetX(GUIObject *guio);
60 void GUIControl_SetX(GUIObject *guio, int xx);
61 int GUIControl_GetY(GUIObject *guio);
62 void GUIControl_SetY(GUIObject *guio, int yy);
63 int GUIControl_GetZOrder(GUIObject *guio);
64 void GUIControl_SetZOrder(GUIObject *guio, int zorder);
65 void GUIControl_SetPosition(GUIObject *guio, int xx, int yy);
66 int GUIControl_GetWidth(GUIObject *guio);
67 void GUIControl_SetWidth(GUIObject *guio, int newwid);
68 int GUIControl_GetHeight(GUIObject *guio);
69 void GUIControl_SetHeight(GUIObject *guio, int newhit);
70 void GUIControl_SetSize(GUIObject *guio, int newwid, int newhit);
71 void GUIControl_SendToBack(GUIObject *guio);
72 void GUIControl_BringToFront(GUIObject *guio);
73 
74 } // namespace AGS3
75 
76 #endif
Definition: ags.h:40