[FREELDR]
[reactos.git] / reactos / boot / freeldr / freeldr / include / ui / noui.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: FreeLoader
4 * FILE: freeldr/include/ui/noui.h
5 * PURPOSE: No UI interface header
6 * PROGRAMMERS: Hervé Poussineau
7 */
8
9 #pragma once
10
11 ///////////////////////////////////////////////////////////////////////////////////////
12 //
13 // No User Interface Functions
14 //
15 ///////////////////////////////////////////////////////////////////////////////////////
16
17 BOOLEAN NoUiInitialize(VOID);
18 VOID NoUiUnInitialize(VOID);
19
20 VOID NoUiDrawBackdrop(VOID);
21 VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr);
22 VOID NoUiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom);
23 VOID NoUiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr);
24 VOID NoUiDrawText(ULONG X, ULONG Y, PCSTR Text, UCHAR Attr);
25 VOID NoUiDrawCenteredText(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, PCSTR TextString, UCHAR Attr);
26 VOID NoUiDrawStatusText(PCSTR StatusText);
27 VOID NoUiUpdateDateTime(VOID);
28 VOID NoUiMessageBox(PCSTR MessageText);
29 VOID NoUiMessageBoxCritical(PCSTR MessageText);
30 VOID NoUiDrawProgressBarCenter(ULONG Position, ULONG Range, PCHAR ProgressText);
31 VOID NoUiDrawProgressBar(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, ULONG Position, ULONG Range, PCHAR ProgressText);
32 BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length);
33 UCHAR NoUiTextToColor(PCSTR ColorText);
34 UCHAR NoUiTextToFillStyle(PCSTR FillStyleText);
35 VOID NoUiFadeInBackdrop(VOID);
36 VOID NoUiFadeOut(VOID);
37
38 ///////////////////////////////////////////////////////////////////////////////////////
39 //
40 // Menu Functions
41 //
42 ///////////////////////////////////////////////////////////////////////////////////////
43
44 BOOLEAN NoUiDisplayMenu(PCSTR MenuTitle, PCSTR MenuItemList[], ULONG MenuItemCount, ULONG DefaultMenuItem, LONG MenuTimeOut, ULONG* SelectedMenuItem, BOOLEAN CanEscape, UiMenuKeyPressFilterCallback KeyPressFilter);
45 VOID NoUiDrawMenu(PUI_MENU_INFO MenuInfo);