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_LISTBOX_H
24 #define AGS_ENGINE_AC_LISTBOX_H
25 
26 #include "ags/shared/gui/gui_listbox.h"
27 
28 namespace AGS3 {
29 
30 using AGS::Shared::GUIListBox;
31 
32 int         ListBox_AddItem(GUIListBox *lbb, const char *text);
33 int         ListBox_InsertItemAt(GUIListBox *lbb, int index, const char *text);
34 void        ListBox_Clear(GUIListBox *listbox);
35 void        ListBox_FillDirList(GUIListBox *listbox, const char *filemask);
36 int         ListBox_GetSaveGameSlots(GUIListBox *listbox, int index);
37 int         ListBox_FillSaveGameList(GUIListBox *listbox);
38 int         ListBox_GetItemAtLocation(GUIListBox *listbox, int x, int y);
39 char *ListBox_GetItemText(GUIListBox *listbox, int index, char *buffer);
40 const char *ListBox_GetItems(GUIListBox *listbox, int index);
41 void        ListBox_SetItemText(GUIListBox *listbox, int index, const char *newtext);
42 void        ListBox_RemoveItem(GUIListBox *listbox, int itemIndex);
43 int         ListBox_GetItemCount(GUIListBox *listbox);
44 int         ListBox_GetFont(GUIListBox *listbox);
45 void        ListBox_SetFont(GUIListBox *listbox, int newfont);
46 int         ListBox_GetHideBorder(GUIListBox *listbox);
47 void        ListBox_SetHideBorder(GUIListBox *listbox, int newValue);
48 int         ListBox_GetHideScrollArrows(GUIListBox *listbox);
49 void        ListBox_SetHideScrollArrows(GUIListBox *listbox, int newValue);
50 int         ListBox_GetSelectedIndex(GUIListBox *listbox);
51 void        ListBox_SetSelectedIndex(GUIListBox *guisl, int newsel);
52 int         ListBox_GetTopItem(GUIListBox *listbox);
53 void        ListBox_SetTopItem(GUIListBox *guisl, int item);
54 int         ListBox_GetRowCount(GUIListBox *listbox);
55 void        ListBox_ScrollDown(GUIListBox *listbox);
56 void        ListBox_ScrollUp(GUIListBox *listbox);
57 
58 GUIListBox *is_valid_listbox(int guin, int objn);
59 
60 } // namespace AGS3
61 
62 #endif
63