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