2004-05-28 12:14:00 +00:00
|
|
|
/*
|
|
|
|
* ReactOS kernel
|
|
|
|
* Copyright (C) 2004 ReactOS Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-05-28 12:14:00 +00:00
|
|
|
*/
|
2013-03-16 20:08:56 +00:00
|
|
|
/*
|
2004-05-28 12:14:00 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS text-mode setup
|
2015-09-13 16:40:36 +00:00
|
|
|
* FILE: base/setup/usetup/genlist.h
|
2004-05-28 12:14:00 +00:00
|
|
|
* PURPOSE: Generic list functions
|
|
|
|
* PROGRAMMER: Eric Kohl
|
|
|
|
*/
|
|
|
|
|
2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2004-05-28 12:14:00 +00:00
|
|
|
|
2008-05-11 21:17:57 +00:00
|
|
|
struct _GENERIC_LIST_ENTRY;
|
|
|
|
typedef struct _GENERIC_LIST_ENTRY *PGENERIC_LIST_ENTRY;
|
|
|
|
struct _GENERIC_LIST;
|
|
|
|
typedef struct _GENERIC_LIST *PGENERIC_LIST;
|
2004-05-28 12:14:00 +00:00
|
|
|
|
|
|
|
PGENERIC_LIST
|
|
|
|
CreateGenericList(VOID);
|
|
|
|
|
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
DestroyGenericList(
|
|
|
|
PGENERIC_LIST List,
|
|
|
|
BOOLEAN FreeUserData);
|
2004-05-28 12:14:00 +00:00
|
|
|
|
|
|
|
BOOLEAN
|
2014-05-12 14:17:37 +00:00
|
|
|
AppendGenericListEntry(
|
|
|
|
PGENERIC_LIST List,
|
|
|
|
PCHAR Text,
|
|
|
|
PVOID UserData,
|
|
|
|
BOOLEAN Current);
|
2004-05-28 12:14:00 +00:00
|
|
|
|
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
DrawGenericList(
|
|
|
|
PGENERIC_LIST List,
|
|
|
|
SHORT Left,
|
|
|
|
SHORT Top,
|
|
|
|
SHORT Right,
|
|
|
|
SHORT Bottom);
|
2004-05-28 12:14:00 +00:00
|
|
|
|
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
ScrollDownGenericList(
|
|
|
|
PGENERIC_LIST List);
|
2004-05-28 12:14:00 +00:00
|
|
|
|
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
ScrollUpGenericList(
|
|
|
|
PGENERIC_LIST List);
|
2004-05-28 12:14:00 +00:00
|
|
|
|
2008-05-14 14:01:06 +00:00
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
ScrollPageDownGenericList(
|
|
|
|
PGENERIC_LIST List);
|
2008-05-14 14:01:06 +00:00
|
|
|
|
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
ScrollPageUpGenericList(
|
|
|
|
PGENERIC_LIST List);
|
2008-05-14 14:01:06 +00:00
|
|
|
|
2008-06-02 15:34:57 +00:00
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
ScrollToPositionGenericList(
|
|
|
|
PGENERIC_LIST List,
|
|
|
|
ULONG uIndex);
|
2008-06-02 15:34:57 +00:00
|
|
|
|
2014-01-19 09:47:27 +00:00
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
RedrawGenericList(
|
|
|
|
PGENERIC_LIST List);
|
2014-01-19 09:47:27 +00:00
|
|
|
|
2008-05-11 21:17:57 +00:00
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
SetCurrentListEntry(
|
|
|
|
PGENERIC_LIST List,
|
|
|
|
PGENERIC_LIST_ENTRY Entry);
|
2008-05-11 21:17:57 +00:00
|
|
|
|
|
|
|
PGENERIC_LIST_ENTRY
|
2014-05-12 14:17:37 +00:00
|
|
|
GetCurrentListEntry(
|
|
|
|
PGENERIC_LIST List);
|
2008-05-11 21:17:57 +00:00
|
|
|
|
2004-05-28 12:14:00 +00:00
|
|
|
PGENERIC_LIST_ENTRY
|
2014-05-12 14:17:37 +00:00
|
|
|
GetFirstListEntry(
|
|
|
|
PGENERIC_LIST List);
|
2008-05-11 21:17:57 +00:00
|
|
|
|
|
|
|
PGENERIC_LIST_ENTRY
|
2014-05-12 14:17:37 +00:00
|
|
|
GetNextListEntry(
|
|
|
|
PGENERIC_LIST_ENTRY Entry);
|
2008-05-11 21:17:57 +00:00
|
|
|
|
|
|
|
PVOID
|
2014-05-12 14:17:37 +00:00
|
|
|
GetListEntryUserData(
|
|
|
|
PGENERIC_LIST_ENTRY List);
|
2008-05-11 21:17:57 +00:00
|
|
|
|
|
|
|
LPCSTR
|
2014-05-12 14:17:37 +00:00
|
|
|
GetListEntryText(
|
|
|
|
PGENERIC_LIST_ENTRY List);
|
2004-05-28 12:14:00 +00:00
|
|
|
|
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
SaveGenericListState(
|
|
|
|
PGENERIC_LIST List);
|
2004-05-28 12:14:00 +00:00
|
|
|
|
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
RestoreGenericListState(
|
|
|
|
PGENERIC_LIST List);
|
2004-05-28 12:14:00 +00:00
|
|
|
|
2008-01-23 16:14:50 +00:00
|
|
|
VOID
|
2014-05-12 14:17:37 +00:00
|
|
|
GenericListKeyPress(
|
|
|
|
PGENERIC_LIST List,
|
|
|
|
CHAR AsciChar);
|
2008-01-23 16:14:50 +00:00
|
|
|
|
2015-10-18 13:52:51 +00:00
|
|
|
BOOL
|
|
|
|
GenericListHasSingleEntry(
|
|
|
|
PGENERIC_LIST List);
|
|
|
|
|
2004-05-28 12:14:00 +00:00
|
|
|
/* EOF */
|