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
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (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, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef AGS_ENGINE_AC_INVWINDOW_H
24 #define AGS_ENGINE_AC_INVWINDOW_H
25 
26 #include "ags/shared/ac/character_info.h"
27 #include "ags/engine/ac/dynobj/script_inv_item.h"
28 #include "ags/shared/gui/gui_inv.h"
29 
30 namespace AGS3 {
31 
32 using AGS::Shared::GUIInvWindow;
33 
34 void            InvWindow_SetCharacterToUse(GUIInvWindow *guii, CharacterInfo *chaa);
35 CharacterInfo *InvWindow_GetCharacterToUse(GUIInvWindow *guii);
36 void            InvWindow_SetItemWidth(GUIInvWindow *guii, int newwidth);
37 int             InvWindow_GetItemWidth(GUIInvWindow *guii);
38 void            InvWindow_SetItemHeight(GUIInvWindow *guii, int newhit);
39 int             InvWindow_GetItemHeight(GUIInvWindow *guii);
40 void            InvWindow_SetTopItem(GUIInvWindow *guii, int topitem);
41 int             InvWindow_GetTopItem(GUIInvWindow *guii);
42 int             InvWindow_GetItemsPerRow(GUIInvWindow *guii);
43 int             InvWindow_GetItemCount(GUIInvWindow *guii);
44 int             InvWindow_GetRowCount(GUIInvWindow *guii);
45 void            InvWindow_ScrollDown(GUIInvWindow *guii);
46 void            InvWindow_ScrollUp(GUIInvWindow *guii);
47 ScriptInvItem *InvWindow_GetItemAtIndex(GUIInvWindow *guii, int index);
48 
49 //=============================================================================
50 
51 int             offset_over_inv(GUIInvWindow *inv);
52 // NOTE: This function is valid for AGS 2.72 and lower
53 int             invscreen();
54 
55 } // namespace AGS3
56 
57 #endif
58