ReactOS 0.4.16-dev-106-g10b08aa
directui.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Boot Loader
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: boot/freeldr/freeldr/ui/directui.c
5 * PURPOSE: FreeLDR UI Routines
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9#if 0
10#include <freeldr.h>
11
12/* GLOBALS ********************************************************************/
13
21CHAR UiTimeText[260] = "Seconds until highlighted choice will be started automatically:";
22
23/* FUNCTIONS ******************************************************************/
24
27{
29
30 /* Nothing to do */
31 if (!ShowUi) return TRUE;
32
33 /* Set mode and query size */
36
37 /* Clear the screen */
39 return TRUE;
40}
41
42VOID
43UiUnInitialize(IN PCSTR BootText)
44{
45 /* Nothing to do */
46 return;
47}
48
49VOID
51{
52 /* Clear the screen */
54}
55
56VOID
58 _In_ ULONG X,
59 _In_ ULONG Y,
61 _In_ UCHAR Attr)
62{
63 TuiDrawText2(X, Y, 0 /*(ULONG)strlen(Text)*/, Text, Attr);
64}
65
66VOID
68 _In_ ULONG X,
69 _In_ ULONG Y,
70 _In_opt_ ULONG MaxNumChars,
71 _In_reads_or_z_(MaxNumChars) PCSTR Text,
72 _In_ UCHAR Attr)
73{
74 TuiDrawText2(X, Y, MaxNumChars, Text, Attr);
75}
76
77VOID
79 _In_ ULONG Left,
81 _In_ ULONG Right,
83 _In_ PCSTR TextString,
84 _In_ UCHAR Attr)
85{
86 TuiDrawCenteredText(Left, Top, Right, Bottom, TextString, Attr);
87}
88
89VOID
90UiDrawStatusText(IN PCSTR StatusText)
91{
92 return;
93}
94
95VOID
97 _In_ PCSTR MessageText)
98{
99 TuiPrintf(MessageText);
100}
101
102VOID
104 _In_ PCSTR MessageText)
105{
106 TuiPrintf(MessageText);
107}
108
109VOID
111 _In_ PCSTR MessageText)
112{
113 TuiPrintf(MessageText);
114}
115
116VOID
118 IN ULONG_PTR SectionId)
119{
120 return;
121}
122
123VOID
125 IN ULONG Argc,
126 IN PCHAR Argv[])
127{
128 return;
129}
130
131VOID
132UiDrawMenu(
134{
136}
137
140 IN PCSTR MenuHeader,
141 IN PCSTR MenuFooter OPTIONAL,
142 IN BOOLEAN ShowBootOptions,
143 IN PCSTR MenuItemList[],
144 IN ULONG MenuItemCount,
145 IN ULONG DefaultMenuItem,
146 IN LONG MenuTimeOut,
147 OUT PULONG SelectedMenuItem,
148 IN BOOLEAN CanEscape,
151{
152 return TuiDisplayMenu(MenuHeader,
153 MenuFooter,
154 ShowBootOptions,
155 MenuItemList,
156 MenuItemCount,
157 DefaultMenuItem,
158 MenuTimeOut,
159 SelectedMenuItem,
160 CanEscape,
161 KeyPressFilter,
162 Context);
163}
164
165#endif // _M_ARM
unsigned char BOOLEAN
static LPHIST_ENTRY Bottom
Definition: history.c:54
static LPHIST_ENTRY Top
Definition: history.c:53
#define MachVideoClearScreen(Attr)
Definition: machine.h:92
#define MachVideoSetDisplayMode(Mode, Init)
Definition: machine.h:94
#define MachVideoGetDisplaySize(W, H, D)
Definition: machine.h:96
ULONG UiScreenWidth
Definition: ui.c:54
BOOLEAN UiDisplayMenu(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: ui.c:605
VOID UiDrawText(_In_ ULONG X, _In_ ULONG Y, _In_ PCSTR Text, _In_ UCHAR Attr)
Definition: ui.c:254
VOID UiDrawText2(_In_ ULONG X, _In_ ULONG Y, _In_opt_ ULONG MaxNumChars, _In_reads_or_z_(MaxNumChars) PCSTR Text, _In_ UCHAR Attr)
Definition: ui.c:264
#define COLOR_GRAY
Definition: ui.h:329
VOID UiShowMessageBoxesInArgv(IN ULONG Argc, IN PCHAR Argv[])
Definition: ui.c:568
UCHAR UiTextColor
Definition: ui.c:36
VOID UiShowMessageBoxesInSection(IN ULONG_PTR SectionId)
Definition: ui.c:524
UCHAR UiMenuBgColor
Definition: ui.c:35
#define ATTR(cFore, cBack)
Definition: ui.h:317
VOID UiInfoBox(_In_ PCSTR MessageText)
Definition: ui.c:297
CHAR UiTimeText[260]
Definition: ui.c:48
BOOLEAN(* UiMenuKeyPressFilterCallback)(IN ULONG KeyPress, IN ULONG SelectedMenuItem, IN PVOID Context OPTIONAL)
Definition: ui.h:224
#define COLOR_WHITE
Definition: ui.h:338
VOID UiMessageBoxCritical(_In_ PCSTR MessageText)
Definition: ui.c:372
ULONG UiScreenHeight
Definition: ui.c:55
#define COLOR_BLACK
Definition: ui.h:322
VOID UiUnInitialize(PCSTR BootText)
Definition: ui.c:224
VOID UiDrawBackdrop(VOID)
Definition: ui.c:233
VOID UiDrawStatusText(PCSTR StatusText)
Definition: ui.c:286
UCHAR UiSelectedTextColor
Definition: ui.c:37
UCHAR UiSelectedTextBgColor
Definition: ui.c:38
UCHAR UiMenuFgColor
Definition: ui.c:34
BOOLEAN UiInitialize(BOOLEAN ShowUi)
Definition: ui.c:92
VOID UiDrawCenteredText(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR TextString, _In_ UCHAR Attr)
Definition: ui.c:275
VOID UiMessageBox(_In_ PCSTR Format,...)
Definition: ui.c:359
char * Text
Definition: combotst.c:136
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define Y(I)
VOID MiniTuiDrawMenu(_In_ PUI_MENU_INFO MenuInfo)
Definition: minitui.c:183
#define _In_reads_or_z_(size)
Definition: ms_sal.h:325
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
long LONG
Definition: pedump.c:60
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
menu info structure
Definition: window.h:276
VOID TuiDrawCenteredText(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR TextString, _In_ UCHAR Attr)
Definition: tui.c:118
VOID TuiDrawText2(_In_ ULONG X, _In_ ULONG Y, _In_opt_ ULONG MaxNumChars, _In_reads_or_z_(MaxNumChars) PCSTR Text, _In_ UCHAR Attr)
Definition: tui.c:95
BOOLEAN TuiDisplayMenu(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: tuimenu.c:30
INT TuiPrintf(_In_ PCSTR Format,...)
Definition: tui.c:39
uint32_t * PULONG
Definition: typedefs.h:59
const char * PCSTR
Definition: typedefs.h:52
uint32_t ULONG_PTR
Definition: typedefs.h:65
#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
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION _In_ ULONG _In_ SIZE_T _In_ ULONG _In_ USHORT Depth
Definition: exfuncs.h:819
unsigned char UCHAR
Definition: xmlstorage.h:181
char CHAR
Definition: xmlstorage.h:175