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