ReactOS 0.4.16-dev-297-gc569aee
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
17VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr);
19VOID 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 */
22VOID
24 _In_ ULONG X,
25 _In_ ULONG Y,
27 _In_ UCHAR Attr);
28
29/* Draws text at coordinates specified */
30VOID
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 */
39VOID
41 _In_ ULONG Left,
43 _In_ ULONG Right,
45 _In_ PCSTR TextString,
46 _In_ UCHAR Attr);
47
48VOID NoUiDrawStatusText(PCSTR StatusText);
50
51VOID
53 _In_ PCSTR MessageText);
54
55VOID
57 _In_ PCSTR MessageText);
58
59/* Loading Progress-Bar Functions ********************************************/
60
61VOID
63 _In_ PCSTR ProgressText);
64
65VOID
67 _In_ ULONG SubPercentTimes100);
68
69/* Draws the progress bar showing nPos percent filled */
70VOID
72 _In_ PCSTR ProgressText);
73
74/* Draws the progress bar showing nPos percent filled */
75VOID
77 _In_ ULONG Left,
79 _In_ ULONG Right,
81 _In_ PCSTR ProgressText);
82
83
84BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length);
85UCHAR NoUiTextToColor(PCSTR ColorText);
86UCHAR NoUiTextToFillStyle(PCSTR FillStyleText);
89
90/* Menu Functions ************************************************************/
91
94 IN PCSTR MenuHeader,
95 IN PCSTR MenuFooter OPTIONAL,
96 IN BOOLEAN ShowBootOptions,
97 IN PCSTR MenuItemList[],
98 IN ULONG MenuItemCount,
99 IN ULONG DefaultMenuItem,
100 IN LONG MenuTimeOut,
101 OUT PULONG SelectedMenuItem,
102 IN BOOLEAN CanEscape,
105
106VOID
unsigned char BOOLEAN
static LPHIST_ENTRY Bottom
Definition: history.c:54
static LPHIST_ENTRY Top
Definition: history.c:53
BOOLEAN(* UiMenuKeyPressFilterCallback)(IN ULONG KeyPress, IN ULONG SelectedMenuItem, IN PVOID Context OPTIONAL)
Definition: ui.h:224
char * Text
Definition: combotst.c:136
#define Y(I)
void Fill(HDC hdc, LONG x, LONG y, COLORREF color)
Definition: drawing.cpp:107
#define _In_reads_or_z_(s)
Definition: no_sal2.h:174
#define _In_
Definition: no_sal2.h:158
#define _In_opt_
Definition: no_sal2.h:212
VOID NoUiMessageBox(_In_ PCSTR MessageText)
Definition: noui.c:81
VOID NoUiUnInitialize(VOID)
Definition: noui.c:16
VOID NoUiDrawStatusText(PCSTR StatusText)
Definition: noui.c:71
VOID NoUiDrawProgressBar(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR ProgressText)
Definition: noui.c:123
VOID NoUiTickProgressBar(_In_ ULONG SubPercentTimes100)
Definition: noui.c:111
VOID NoUiFadeInBackdrop(VOID)
Definition: noui.c:148
UCHAR NoUiTextToFillStyle(PCSTR FillStyleText)
Definition: noui.c:143
BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
Definition: noui.c:133
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:47
VOID NoUiUpdateDateTime(VOID)
Definition: noui.c:76
VOID NoUiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
Definition: noui.c:28
VOID NoUiDrawCenteredText(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR TextString, _In_ UCHAR Attr)
Definition: noui.c:60
BOOLEAN NoUiInitialize(VOID)
Definition: noui.c:11
VOID NoUiMessageBoxCritical(_In_ PCSTR MessageText)
Definition: noui.c:88
VOID NoUiDrawMenu(_In_ PUI_MENU_INFO MenuInfo)
Definition: noui.c:181
VOID NoUiDrawBackdrop(VOID)
Definition: noui.c:20
VOID NoUiSetProgressBarText(_In_ PCSTR ProgressText)
Definition: noui.c:105
VOID NoUiFadeOut(VOID)
Definition: noui.c:152
VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
Definition: noui.c:24
VOID NoUiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
Definition: noui.c:32
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:163
VOID NoUiDrawProgressBarCenter(_In_ PCSTR ProgressText)
Definition: noui.c:117
VOID NoUiDrawText(_In_ ULONG X, _In_ ULONG Y, _In_ PCSTR Text, _In_ UCHAR Attr)
Definition: noui.c:37
UCHAR NoUiTextToColor(PCSTR ColorText)
Definition: noui.c:138
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
long LONG
Definition: pedump.c:60
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
menu info structure
Definition: window.h:276
uint32_t * PULONG
Definition: typedefs.h:59
const char * PCSTR
Definition: typedefs.h:52
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
char * PCHAR
Definition: typedefs.h:51
unsigned char UCHAR
Definition: xmlstorage.h:181
char CHAR
Definition: xmlstorage.h:175