TianoCore EDK2 master
Loading...
Searching...
No Matches
CustomizedDisplayLibInternal.h
Go to the documentation of this file.
1
10#ifndef __CUSTOMIZED_DISPLAY_LIB_INTERNAL_H__
11#define __CUSTOMIZED_DISPLAY_LIB_INTERNAL_H__
12
13#include <PiDxe.h>
14
20#include <Protocol/DevicePath.h>
25#include <Protocol/HiiString.h>
28
29#include <Guid/MdeModuleHii.h>
32
33#include <Library/PrintLib.h>
34#include <Library/DebugLib.h>
39#include <Library/BaseLib.h>
41#include <Library/HiiLib.h>
42#include <Library/PcdLib.h>
45
46#include "Colors.h"
47
48#define FORMSET_CLASS_PLATFORM_SETUP 0x0001
49#define FORMSET_CLASS_FRONT_PAGE 0x0002
50
51#define FRONT_PAGE_HEADER_HEIGHT 6
52#define NONE_FRONT_PAGE_HEADER_HEIGHT 3
53#define FOOTER_HEIGHT 4
54#define STATUS_BAR_HEIGHT 1
55
56//
57// Screen definitions
58//
59#define BANNER_HEIGHT 6
60#define BANNER_COLUMNS 3
61#define BANNER_LEFT_COLUMN_INDENT 1
62
63//
64// Character definitions
65//
66#define UPPER_LOWER_CASE_OFFSET 0x20
67
68//
69// This is the Input Error Message
70//
71#define INPUT_ERROR 1
72
73//
74// This is the NV RAM update required Message
75//
76#define NV_UPDATE_REQUIRED 2
77
78typedef struct {
79 EFI_STRING_ID Banner[BANNER_HEIGHT][BANNER_COLUMNS];
81
82extern UINT16 gClassOfVfr; // Formset class information
83extern BANNER_DATA *gBannerData;
84extern EFI_SCREEN_DESCRIPTOR gScreenDimensions;
85extern UINTN gFooterHeight;
86
87//
88// Browser Global Strings
89//
90extern CHAR16 *gEnterString;
91extern CHAR16 *gEnterCommitString;
92extern CHAR16 *gEnterEscapeString;
93extern CHAR16 *gEscapeString;
94extern CHAR16 *gMoveHighlight;
95extern CHAR16 *gDecNumericInput;
96extern CHAR16 *gHexNumericInput;
97extern CHAR16 *gToggleCheckBox;
98extern CHAR16 *gLibEmptyString;
99extern CHAR16 *gAreYouSure;
100extern CHAR16 *gYesResponse;
101extern CHAR16 *gNoResponse;
102extern CHAR16 *gPlusString;
103extern CHAR16 *gMinusString;
104extern CHAR16 *gAdjustNumber;
105extern CHAR16 *gSaveChanges;
106extern CHAR16 *gNvUpdateMessage;
107extern CHAR16 *gInputErrorMessage;
108
116VOID
119 );
120
126VOID
129 );
130
143 );
144
155CHAR16 *
157 IN EFI_STRING_ID Token,
158 IN EFI_HII_HANDLE HiiHandle
159 );
160
177UINTN
179 IN CHAR16 *String
180 );
181
189VOID
192 IN BOOLEAN SetState
193 );
194
202UINT64
204 IN EFI_IFR_OP_HEADER *OpCode
205 );
206
211VOID
213 VOID
214 );
215
220VOID
222 VOID
223 );
224
235 OUT EFI_INPUT_KEY *Key
236 );
237
246VOID
248 IN VOID *Buffer,
249 IN UINTN Size,
250 IN CHAR16 Value
251 );
252
266UINTN
267EFIAPI
268PrintAt (
269 IN UINTN Width,
270 IN UINTN Column,
271 IN UINTN Row,
272 IN CHAR16 *Fmt,
273 ...
274 );
275
282VOID
285 );
286
287#endif
UINT64 UINTN
VOID FreeLibStrings(VOID)
VOID PrintHotKeyHelpString(IN FORM_DISPLAY_ENGINE_FORM *FormData, IN BOOLEAN SetState)
VOID InitializeLibStrings(VOID)
EFI_STATUS WaitForKeyStroke(OUT EFI_INPUT_KEY *Key)
CHAR16 * LibGetToken(IN EFI_STRING_ID Token, IN EFI_HII_HANDLE HiiHandle)
VOID PrintBannerInfo(IN FORM_DISPLAY_ENGINE_FORM *FormData)
VOID ProcessExternedOpcode(IN FORM_DISPLAY_ENGINE_FORM *FormData)
VOID LibSetUnicodeMem(IN VOID *Buffer, IN UINTN Size, IN CHAR16 Value)
EFI_STATUS ScreenDiemensionInfoValidate(IN FORM_DISPLAY_ENGINE_FORM *FormData)
VOID PrintFramework(IN FORM_DISPLAY_ENGINE_FORM *FormData)
UINTN LibGetStringWidth(IN CHAR16 *String)
UINTN EFIAPI PrintAt(IN UINTN Width, IN UINTN Column, IN UINTN Row, IN CHAR16 *Fmt,...)
UINT64 LibGetFieldFromNum(IN EFI_IFR_OP_HEADER *OpCode)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HII_HANDLE