ReactOS 0.4.16-dev-125-g798ea90
genlist.h
Go to the documentation of this file.
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:
25 */
26
27#pragma once
28
29// #include "../lib/utils/genlist.h"
30
31typedef NTSTATUS
35 IN SIZE_T cchBufferSize);
36
37typedef struct _GENERIC_LIST_UI
38{
40
44
46
52
54
56
57VOID
59 IN OUT PGENERIC_LIST_UI ListUi,
61 IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc);
62
63VOID
65 IN PGENERIC_LIST_UI ListUi);
66
67VOID
69 IN PGENERIC_LIST_UI ListUi,
70 IN SHORT Left,
71 IN SHORT Top,
72 IN SHORT Right,
74
75VOID
78 IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc,
79 IN SHORT Left,
80 IN SHORT Top);
81
82VOID
84 IN PGENERIC_LIST_UI ListUi);
85
86VOID
88 IN PGENERIC_LIST_UI ListUi);
89
90VOID
92 IN PGENERIC_LIST_UI ListUi);
93
94VOID
96 IN PGENERIC_LIST_UI ListUi);
97
98VOID
100 IN PGENERIC_LIST_UI ListUi,
101 IN ULONG uIndex);
102
103VOID
105 IN PGENERIC_LIST_UI ListUi);
106
107VOID
109 IN PGENERIC_LIST_UI ListUi,
110 IN CHAR AsciiChar);
111
112/* EOF */
static LPHIST_ENTRY Bottom
Definition: history.c:54
static LPHIST_ENTRY Top
Definition: history.c:53
Definition: bufpool.h:45
#define NTSTATUS
Definition: precomp.h:21
unsigned int BOOL
Definition: ntddk_ex.h:94
short SHORT
Definition: pedump.c:59
base of all file and directory entries
Definition: entries.h:83
Definition: genlist.h:11
SHORT Bottom
Definition: genlist.h:50
PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc
Definition: genlist.h:45
CHAR CurrentItemText[256]
Definition: genlist.h:53
PGENERIC_LIST List
Definition: genlist.h:39
PLIST_ENTRY LastShown
Definition: genlist.h:42
PLIST_ENTRY FirstShown
Definition: genlist.h:41
PGENERIC_LIST_ENTRY BackupEntry
Definition: genlist.h:43
Definition: typedefs.h:120
char * PSTR
Definition: typedefs.h:51
#define NTAPI
Definition: typedefs.h:36
ULONG_PTR SIZE_T
Definition: typedefs.h:80
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
VOID RedrawGenericList(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:511
VOID InitGenericListUi(IN OUT PGENERIC_LIST_UI ListUi, IN PGENERIC_LIST List, IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc)
Definition: genlist.c:37
VOID ScrollPageUpGenericList(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:454
VOID ScrollToPositionGenericList(IN PGENERIC_LIST_UI ListUi, IN ULONG uIndex)
Definition: genlist.c:476
NTSTATUS(NTAPI * PGET_ENTRY_DESCRIPTION)(IN PGENERIC_LIST_ENTRY Entry, OUT PSTR Buffer, IN SIZE_T cchBufferSize)
Definition: genlist.h:32
VOID RestoreGenericListUiState(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:62
VOID GenericListKeyPress(IN PGENERIC_LIST_UI ListUi, IN CHAR AsciiChar)
Definition: genlist.c:525
VOID DrawGenericList(IN PGENERIC_LIST_UI ListUi, IN SHORT Left, IN SHORT Top, IN SHORT Right, IN SHORT Bottom)
Definition: genlist.c:326
VOID ScrollUpGenericList(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:404
VOID ScrollDownGenericList(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:376
VOID ScrollPageDownGenericList(IN PGENERIC_LIST_UI ListUi)
Definition: genlist.c:432
struct _GENERIC_LIST_UI GENERIC_LIST_UI
VOID DrawGenericListCurrentItem(IN PGENERIC_LIST List, IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc, IN SHORT Left, IN SHORT Top)
Definition: genlist.c:353
struct _GENERIC_LIST_UI * PGENERIC_LIST_UI
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition: wdfresource.h:550
char CHAR
Definition: xmlstorage.h:175