ReactOS  0.4.15-dev-5618-g8866b9d
noui.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: FreeLoader
4  * FILE: boot/freeldr/freeldr/include/ui/noui.h
5  * PURPOSE: No UI interface header
6  * PROGRAMMERS: HervĂ© Poussineau
7  */
8 
9 #pragma once
10 
11 /* No User Interface Functions ***********************************************/
12 
15 
17 VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr);
19 VOID NoUiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr);
20 
21 /* Draws text at coordinates specified */
22 VOID
24  _In_ ULONG X,
25  _In_ ULONG Y,
26  _In_ PCSTR Text,
27  _In_ UCHAR Attr);
28 
29 /* Draws text at coordinates specified */
30 VOID
32  _In_ ULONG X,
33  _In_ ULONG Y,
34  _In_opt_ ULONG MaxNumChars,
35  _In_reads_or_z_(MaxNumChars) PCSTR Text,
36  _In_ UCHAR Attr);
37 
38 /* Draws centered text at the coordinates specified and clips the edges */
39 VOID
41  _In_ ULONG Left,
42  _In_ ULONG Top,
43  _In_ ULONG Right,
45  _In_ PCSTR TextString,
46  _In_ UCHAR Attr);
47 
48 VOID NoUiDrawStatusText(PCSTR StatusText);
50 VOID NoUiMessageBox(PCSTR MessageText);
51 VOID NoUiMessageBoxCritical(PCSTR MessageText);
52 
53 /* Loading Progress-Bar Functions ********************************************/
54 
55 VOID
57  _In_ PCSTR ProgressText);
58 
59 VOID
61  _In_ ULONG SubPercentTimes100);
62 
63 /* Draws the progress bar showing nPos percent filled */
64 VOID
66  _In_ PCSTR ProgressText);
67 
68 /* Draws the progress bar showing nPos percent filled */
69 VOID
71  _In_ ULONG Left,
72  _In_ ULONG Top,
73  _In_ ULONG Right,
75  _In_ PCSTR ProgressText);
76 
77 
78 BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length);
79 UCHAR NoUiTextToColor(PCSTR ColorText);
80 UCHAR NoUiTextToFillStyle(PCSTR FillStyleText);
83 
84 /* Menu Functions ************************************************************/
85 
86 BOOLEAN
88  IN PCSTR MenuHeader,
89  IN PCSTR MenuFooter OPTIONAL,
90  IN BOOLEAN ShowBootOptions,
91  IN PCSTR MenuItemList[],
92  IN ULONG MenuItemCount,
93  IN ULONG DefaultMenuItem,
94  IN LONG MenuTimeOut,
95  OUT PULONG SelectedMenuItem,
96  IN BOOLEAN CanEscape,
99 
100 VOID
signed char * PCHAR
Definition: retypes.h:7
#define IN
Definition: typedefs.h:39
UCHAR NoUiTextToColor(PCSTR ColorText)
Definition: noui.c:139
VOID NoUiFadeOut(VOID)
Definition: noui.c:153
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
void Fill(HDC hdc, LONG x, LONG y, COLORREF color)
Definition: drawing.cpp:109
#define _In_opt_
Definition: ms_sal.h:309
BOOLEAN NoUiInitialize(VOID)
Definition: noui.c:12
BOOLEAN NoUiDisplayMenu(IN PCSTR MenuHeader, IN PCSTR MenuFooter OPTIONAL, IN BOOLEAN ShowBootOptions, IN PCSTR MenuItemList[], IN ULONG MenuItemCount, IN ULONG DefaultMenuItem, IN LONG MenuTimeOut, OUT PULONG SelectedMenuItem, IN BOOLEAN CanEscape, IN UiMenuKeyPressFilterCallback KeyPressFilter OPTIONAL, IN PVOID Context OPTIONAL)
Definition: noui.c:164
#define Y(I)
VOID NoUiDrawProgressBarCenter(_In_ PCSTR ProgressText)
Definition: noui.c:118
char CHAR
Definition: xmlstorage.h:175
VOID NoUiDrawCenteredText(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR TextString, _In_ UCHAR Attr)
Definition: noui.c:61
VOID NoUiDrawStatusText(PCSTR StatusText)
Definition: noui.c:72
VOID NoUiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
Definition: noui.c:33
BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
Definition: noui.c:134
VOID NoUiTickProgressBar(_In_ ULONG SubPercentTimes100)
Definition: noui.c:112
VOID NoUiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
Definition: noui.c:29
VOID NoUiUpdateDateTime(VOID)
Definition: noui.c:77
UCHAR NoUiTextToFillStyle(PCSTR FillStyleText)
Definition: noui.c:144
VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
Definition: noui.c:25
long LONG
Definition: pedump.c:60
unsigned char BOOLEAN
#define _In_
Definition: ms_sal.h:308
VOID NoUiMessageBox(PCSTR MessageText)
Definition: noui.c:81
VOID NoUiDrawText2(_In_ ULONG X, _In_ ULONG Y, _In_opt_ ULONG MaxNumChars, _In_reads_or_z_(MaxNumChars) PCSTR Text, _In_ UCHAR Attr)
Definition: noui.c:48
VOID NoUiUnInitialize(VOID)
Definition: noui.c:17
VOID NoUiSetProgressBarText(_In_ PCSTR ProgressText)
Definition: noui.c:106
VOID NoUiDrawMenu(_In_ PUI_MENU_INFO MenuInfo)
Definition: noui.c:182
unsigned char UCHAR
Definition: xmlstorage.h:181
BOOLEAN(* UiMenuKeyPressFilterCallback)(IN ULONG KeyPress, IN ULONG SelectedMenuItem, IN PVOID Context OPTIONAL)
Definition: ui.h:221
menu info structure
Definition: window.h:275
VOID NoUiFadeInBackdrop(VOID)
Definition: noui.c:149
static LPHIST_ENTRY Bottom
Definition: history.c:54
VOID NoUiDrawText(_In_ ULONG X, _In_ ULONG Y, _In_ PCSTR Text, _In_ UCHAR Attr)
Definition: noui.c:38
VOID NoUiDrawBackdrop(VOID)
Definition: noui.c:21
VOID NoUiMessageBoxCritical(PCSTR MessageText)
Definition: noui.c:92
unsigned int * PULONG
Definition: retypes.h:1
#define _In_reads_or_z_(size)
Definition: ms_sal.h:325
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
const char * PCSTR
Definition: typedefs.h:52
VOID NoUiDrawProgressBar(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR ProgressText)
Definition: noui.c:124
static LPHIST_ENTRY Top
Definition: history.c:53
char * Text
Definition: combotst.c:136
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68