ebe406960e57d269419c3170c2d927113e4696e9
[reactos.git] / base / setup / usetup / genlist.h
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2004 ReactOS Team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 /*
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS text-mode setup
22 * FILE: base/setup/usetup/genlist.h
23 * PURPOSE: Generic list functions
24 * PROGRAMMER: Eric Kohl
25 */
26
27 #pragma once
28
29 #include "../lib/genlist.h"
30
31 typedef struct _GENERIC_LIST_UI
32 {
33 PGENERIC_LIST List;
34
35 PLIST_ENTRY FirstShown;
36 PLIST_ENTRY LastShown;
37
38 SHORT Left;
39 SHORT Top;
40 SHORT Right;
41 SHORT Bottom;
42 BOOL Redraw;
43 } GENERIC_LIST_UI, *PGENERIC_LIST_UI;
44
45 VOID
46 InitGenericListUi(
47 IN OUT PGENERIC_LIST_UI ListUi,
48 IN PGENERIC_LIST List);
49
50 VOID
51 DrawGenericList(
52 IN PGENERIC_LIST_UI ListUi,
53 IN SHORT Left,
54 IN SHORT Top,
55 IN SHORT Right,
56 IN SHORT Bottom);
57
58 VOID
59 ScrollDownGenericList(
60 IN PGENERIC_LIST_UI ListUi);
61
62 VOID
63 ScrollUpGenericList(
64 IN PGENERIC_LIST_UI ListUi);
65
66 VOID
67 ScrollPageDownGenericList(
68 IN PGENERIC_LIST_UI ListUi);
69
70 VOID
71 ScrollPageUpGenericList(
72 IN PGENERIC_LIST_UI ListUi);
73
74 VOID
75 ScrollToPositionGenericList(
76 IN PGENERIC_LIST_UI ListUi,
77 IN ULONG uIndex);
78
79 VOID
80 RedrawGenericList(
81 IN PGENERIC_LIST_UI ListUi);
82
83 VOID
84 GenericListKeyPress(
85 IN PGENERIC_LIST_UI ListUi,
86 IN CHAR AsciiChar);
87
88 /* EOF */