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
31
typedef
NTSTATUS
32
(
NTAPI
*
PGET_ENTRY_DESCRIPTION
)(
33
IN
PGENERIC_LIST_ENTRY
Entry
,
34
OUT
PSTR
Buffer
,
35
IN
SIZE_T
cchBufferSize);
36
37
typedef
struct
_GENERIC_LIST_UI
38
{
39
PGENERIC_LIST
List
;
40
41
PLIST_ENTRY
FirstShown
;
42
PLIST_ENTRY
LastShown
;
43
PGENERIC_LIST_ENTRY
BackupEntry
;
44
45
PGET_ENTRY_DESCRIPTION
GetEntryDescriptionProc
;
46
47
SHORT
Left
;
48
SHORT
Top
;
49
SHORT
Right
;
50
SHORT
Bottom
;
51
BOOL
Redraw
;
52
53
CHAR
CurrentItemText
[256];
54
55
}
GENERIC_LIST_UI
, *
PGENERIC_LIST_UI
;
56
57
VOID
58
InitGenericListUi
(
59
IN
OUT
PGENERIC_LIST_UI
ListUi,
60
IN
PGENERIC_LIST
List
,
61
IN
PGET_ENTRY_DESCRIPTION
GetEntryDescriptionProc);
62
63
VOID
64
RestoreGenericListUiState
(
65
IN
PGENERIC_LIST_UI
ListUi);
66
67
VOID
68
DrawGenericList
(
69
IN
PGENERIC_LIST_UI
ListUi,
70
IN
SHORT
Left,
71
IN
SHORT
Top
,
72
IN
SHORT
Right,
73
IN
SHORT
Bottom
);
74
75
VOID
76
DrawGenericListCurrentItem
(
77
IN
PGENERIC_LIST
List
,
78
IN
PGET_ENTRY_DESCRIPTION
GetEntryDescriptionProc,
79
IN
SHORT
Left,
80
IN
SHORT
Top
);
81
82
VOID
83
ScrollDownGenericList
(
84
IN
PGENERIC_LIST_UI
ListUi);
85
86
VOID
87
ScrollUpGenericList
(
88
IN
PGENERIC_LIST_UI
ListUi);
89
90
VOID
91
ScrollPageDownGenericList
(
92
IN
PGENERIC_LIST_UI
ListUi);
93
94
VOID
95
ScrollPageUpGenericList
(
96
IN
PGENERIC_LIST_UI
ListUi);
97
98
VOID
99
ScrollToPositionGenericList
(
100
IN
PGENERIC_LIST_UI
ListUi,
101
IN
ULONG
uIndex);
102
103
VOID
104
RedrawGenericList
(
105
IN
PGENERIC_LIST_UI
ListUi);
106
107
VOID
108
GenericListKeyPress
(
109
IN
PGENERIC_LIST_UI
ListUi,
110
IN
CHAR
AsciiChar);
111
112
/* EOF */
Bottom
static LPHIST_ENTRY Bottom
Definition:
history.c:54
Top
static LPHIST_ENTRY Top
Definition:
history.c:53
Buffer
Definition:
bufpool.h:45
NTSTATUS
#define NTSTATUS
Definition:
precomp.h:21
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
void
Definition:
nsiface.idl:2307
SHORT
short SHORT
Definition:
pedump.c:59
Entry
base of all file and directory entries
Definition:
entries.h:83
_GENERIC_LIST_ENTRY
Definition:
genlist.h:11
_GENERIC_LIST_UI
Definition:
genlist.h:38
_GENERIC_LIST_UI::Redraw
BOOL Redraw
Definition:
genlist.h:51
_GENERIC_LIST_UI::Bottom
SHORT Bottom
Definition:
genlist.h:50
_GENERIC_LIST_UI::Left
SHORT Left
Definition:
genlist.h:47
_GENERIC_LIST_UI::Right
SHORT Right
Definition:
genlist.h:49
_GENERIC_LIST_UI::Top
SHORT Top
Definition:
genlist.h:48
_GENERIC_LIST_UI::GetEntryDescriptionProc
PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc
Definition:
genlist.h:45
_GENERIC_LIST_UI::CurrentItemText
CHAR CurrentItemText[256]
Definition:
genlist.h:53
_GENERIC_LIST_UI::List
PGENERIC_LIST List
Definition:
genlist.h:39
_GENERIC_LIST_UI::LastShown
PLIST_ENTRY LastShown
Definition:
genlist.h:42
_GENERIC_LIST_UI::FirstShown
PLIST_ENTRY FirstShown
Definition:
genlist.h:41
_GENERIC_LIST_UI::BackupEntry
PGENERIC_LIST_ENTRY BackupEntry
Definition:
genlist.h:43
_GENERIC_LIST
Definition:
genlist.h:19
_LIST_ENTRY
Definition:
typedefs.h:120
PSTR
char * PSTR
Definition:
typedefs.h:51
NTAPI
#define NTAPI
Definition:
typedefs.h:36
SIZE_T
ULONG_PTR SIZE_T
Definition:
typedefs.h:80
IN
#define IN
Definition:
typedefs.h:39
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
OUT
#define OUT
Definition:
typedefs.h:40
RedrawGenericList
VOID RedrawGenericList(IN PGENERIC_LIST_UI ListUi)
Definition:
genlist.c:511
InitGenericListUi
VOID InitGenericListUi(IN OUT PGENERIC_LIST_UI ListUi, IN PGENERIC_LIST List, IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc)
Definition:
genlist.c:37
ScrollPageUpGenericList
VOID ScrollPageUpGenericList(IN PGENERIC_LIST_UI ListUi)
Definition:
genlist.c:454
ScrollToPositionGenericList
VOID ScrollToPositionGenericList(IN PGENERIC_LIST_UI ListUi, IN ULONG uIndex)
Definition:
genlist.c:476
PGET_ENTRY_DESCRIPTION
NTSTATUS(NTAPI * PGET_ENTRY_DESCRIPTION)(IN PGENERIC_LIST_ENTRY Entry, OUT PSTR Buffer, IN SIZE_T cchBufferSize)
Definition:
genlist.h:32
RestoreGenericListUiState
VOID RestoreGenericListUiState(IN PGENERIC_LIST_UI ListUi)
Definition:
genlist.c:62
GenericListKeyPress
VOID GenericListKeyPress(IN PGENERIC_LIST_UI ListUi, IN CHAR AsciiChar)
Definition:
genlist.c:525
DrawGenericList
VOID DrawGenericList(IN PGENERIC_LIST_UI ListUi, IN SHORT Left, IN SHORT Top, IN SHORT Right, IN SHORT Bottom)
Definition:
genlist.c:326
ScrollUpGenericList
VOID ScrollUpGenericList(IN PGENERIC_LIST_UI ListUi)
Definition:
genlist.c:404
ScrollDownGenericList
VOID ScrollDownGenericList(IN PGENERIC_LIST_UI ListUi)
Definition:
genlist.c:376
ScrollPageDownGenericList
VOID ScrollPageDownGenericList(IN PGENERIC_LIST_UI ListUi)
Definition:
genlist.c:432
GENERIC_LIST_UI
struct _GENERIC_LIST_UI GENERIC_LIST_UI
DrawGenericListCurrentItem
VOID DrawGenericListCurrentItem(IN PGENERIC_LIST List, IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc, IN SHORT Left, IN SHORT Top)
Definition:
genlist.c:353
PGENERIC_LIST_UI
struct _GENERIC_LIST_UI * PGENERIC_LIST_UI
List
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition:
wdfresource.h:550
CHAR
char CHAR
Definition:
xmlstorage.h:175
base
setup
usetup
genlist.h
Generated on Mon Oct 14 2024 06:02:34 for ReactOS by
1.9.6