xref: /reactos/boot/freeldr/freeldr/ui/gui.c (revision bbce6c3f)
1 /*
2  *  FreeLoader
3  *  Copyright (C) 1998-2003  Brian Palmer  <brianp@sginet.com>
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License along
16  *  with this program; if not, write to the Free Software Foundation, Inc.,
17  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #include <freeldr.h>
21 
GuiDrawBackdrop(VOID)22 VOID GuiDrawBackdrop(VOID)
23 {
24 }
25 
GuiFillArea(ULONG Left,ULONG Top,ULONG Right,ULONG Bottom,UCHAR FillChar,UCHAR Attr)26 VOID GuiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR FillChar, UCHAR Attr /* Color Attributes */)
27 {
28 }
29 
GuiDrawShadow(ULONG Left,ULONG Top,ULONG Right,ULONG Bottom)30 VOID GuiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
31 {
32 }
33 
GuiDrawBox(ULONG Left,ULONG Top,ULONG Right,ULONG Bottom,UCHAR VertStyle,UCHAR HorzStyle,BOOLEAN Fill,BOOLEAN Shadow,UCHAR Attr)34 VOID GuiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
35 {
36 }
37 
GuiDrawText(ULONG X,ULONG Y,PUCHAR Text,UCHAR Attr)38 VOID GuiDrawText(ULONG X, ULONG Y, PUCHAR Text, UCHAR Attr)
39 {
40 }
41 
GuiDrawText2(ULONG X,ULONG Y,ULONG MaxNumChars,PUCHAR Text,UCHAR Attr)42 VOID GuiDrawText2(ULONG X, ULONG Y, ULONG MaxNumChars, PUCHAR Text, UCHAR Attr)
43 {
44 }
45 
GuiDrawStatusText(PCSTR StatusText)46 VOID GuiDrawStatusText(PCSTR StatusText)
47 {
48 }
49 
GuiUpdateDateTime(VOID)50 VOID GuiUpdateDateTime(VOID)
51 {
52 }
53 
54 _Ret_maybenull_
__drv_allocatesMem(Mem)55 __drv_allocatesMem(Mem)
56 PUCHAR
57 GuiSaveScreen(VOID)
58 {
59     return NULL;
60 }
61 
62 VOID
GuiRestoreScreen(_In_opt_ __drv_freesMem (Mem)PUCHAR Buffer)63 GuiRestoreScreen(
64     _In_opt_ __drv_freesMem(Mem) PUCHAR Buffer)
65 {
66 }
67 
68 VOID
GuiMessageBox(_In_ PCSTR MessageText)69 GuiMessageBox(
70     _In_ PCSTR MessageText)
71 {
72 }
73 
74 VOID
GuiMessageBoxCritical(_In_ PCSTR MessageText)75 GuiMessageBoxCritical(
76     _In_ PCSTR MessageText)
77 {
78 }
79 
GuiDrawProgressBar(ULONG Position,ULONG Range)80 VOID GuiDrawProgressBar(ULONG Position, ULONG Range)
81 {
82 }
83 
GuiTextToColor(PCSTR ColorText)84 UCHAR GuiTextToColor(PCSTR ColorText)
85 {
86     return 0;
87 }
88 
GuiTextToFillStyle(PCSTR FillStyleText)89 UCHAR GuiTextToFillStyle(PCSTR FillStyleText)
90 {
91     return 0;
92 }
93 
94 const UIVTBL GuiVtbl =
95 {
96     /*
97     GuiInitialize,
98     GuiUnInitialize,
99     GuiDrawBackdrop,
100     GuiFillArea,
101     GuiDrawShadow,
102     GuiDrawBox,
103     GuiDrawText,
104     GuiDrawText2,
105     GuiDrawCenteredText,
106     GuiDrawStatusText,
107     GuiUpdateDateTime,
108     GuiMessageBox,
109     GuiMessageBoxCritical,
110     GuiDrawProgressBarCenter,
111     GuiDrawProgressBar,
112     GuiEditBox,
113     GuiTextToColor,
114     GuiTextToFillStyle,
115     GuiFadeInBackdrop,
116     GuiFadeOut,
117     GuiDisplayMenu,
118     GuiDrawMenu,
119     */
120     NULL, NULL, NULL, NULL, NULL, NULL, NULL,
121     NULL, NULL, NULL, NULL, NULL, NULL, NULL,
122     NULL, NULL, NULL, NULL, NULL, NULL, NULL,
123     NULL
124 };
125