TianoCore EDK2 master
|
#include <PiDxe.h>
#include <Protocol/SimpleTextOut.h>
#include <Protocol/SimpleTextIn.h>
#include <Protocol/FormBrowser2.h>
#include <Protocol/FormBrowserEx2.h>
#include <Protocol/DisplayProtocol.h>
#include <Protocol/DevicePath.h>
#include <Protocol/UnicodeCollation.h>
#include <Protocol/HiiConfigAccess.h>
#include <Protocol/HiiConfigRouting.h>
#include <Protocol/HiiDatabase.h>
#include <Protocol/HiiString.h>
#include <Protocol/UserManager.h>
#include <Protocol/DevicePathFromText.h>
#include <Guid/MdeModuleHii.h>
#include <Guid/HiiPlatformSetupFormset.h>
#include <Guid/HiiFormMapMethodGuid.h>
#include <Library/PrintLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/UefiDriverEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/BaseLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/HiiLib.h>
#include <Library/PcdLib.h>
#include <Library/DevicePathLib.h>
#include <Library/CustomizedDisplayLib.h>
#include "Colors.h"
Go to the source code of this file.
Data Structures | |
struct | BANNER_DATA |
Macros | |
#define | FORMSET_CLASS_PLATFORM_SETUP 0x0001 |
#define | FORMSET_CLASS_FRONT_PAGE 0x0002 |
#define | FRONT_PAGE_HEADER_HEIGHT 6 |
#define | NONE_FRONT_PAGE_HEADER_HEIGHT 3 |
#define | FOOTER_HEIGHT 4 |
#define | STATUS_BAR_HEIGHT 1 |
#define | BANNER_HEIGHT 6 |
#define | BANNER_COLUMNS 3 |
#define | BANNER_LEFT_COLUMN_INDENT 1 |
#define | UPPER_LOWER_CASE_OFFSET 0x20 |
#define | INPUT_ERROR 1 |
#define | NV_UPDATE_REQUIRED 2 |
Functions | |
VOID | PrintBannerInfo (IN FORM_DISPLAY_ENGINE_FORM *FormData) |
VOID | PrintFramework (IN FORM_DISPLAY_ENGINE_FORM *FormData) |
EFI_STATUS | ScreenDiemensionInfoValidate (IN FORM_DISPLAY_ENGINE_FORM *FormData) |
CHAR16 * | LibGetToken (IN EFI_STRING_ID Token, IN EFI_HII_HANDLE HiiHandle) |
UINTN | LibGetStringWidth (IN CHAR16 *String) |
VOID | PrintHotKeyHelpString (IN FORM_DISPLAY_ENGINE_FORM *FormData, IN BOOLEAN SetState) |
UINT64 | LibGetFieldFromNum (IN EFI_IFR_OP_HEADER *OpCode) |
VOID | InitializeLibStrings (VOID) |
VOID | FreeLibStrings (VOID) |
EFI_STATUS | WaitForKeyStroke (OUT EFI_INPUT_KEY *Key) |
VOID | LibSetUnicodeMem (IN VOID *Buffer, IN UINTN Size, IN CHAR16 Value) |
UINTN EFIAPI | PrintAt (IN UINTN Width, IN UINTN Column, IN UINTN Row, IN CHAR16 *Fmt,...) |
VOID | ProcessExternedOpcode (IN FORM_DISPLAY_ENGINE_FORM *FormData) |
Variables | |
UINT16 | gClassOfVfr |
BANNER_DATA * | gBannerData |
EFI_SCREEN_DESCRIPTOR | gScreenDimensions |
UINTN | gFooterHeight |
CHAR16 * | gEnterString |
CHAR16 * | gEnterCommitString |
CHAR16 * | gEnterEscapeString |
CHAR16 * | gEscapeString |
CHAR16 * | gMoveHighlight |
CHAR16 * | gDecNumericInput |
CHAR16 * | gHexNumericInput |
CHAR16 * | gToggleCheckBox |
CHAR16 * | gLibEmptyString |
CHAR16 * | gAreYouSure |
CHAR16 * | gYesResponse |
CHAR16 * | gNoResponse |
CHAR16 * | gPlusString |
CHAR16 * | gMinusString |
CHAR16 * | gAdjustNumber |
CHAR16 * | gSaveChanges |
CHAR16 * | gNvUpdateMessage |
CHAR16 * | gInputErrorMessage |
This library class defines a set of interfaces to customize Display module
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CustomizedDisplayLibInternal.h.
#define BANNER_COLUMNS 3 |
Definition at line 60 of file CustomizedDisplayLibInternal.h.
#define BANNER_HEIGHT 6 |
Definition at line 59 of file CustomizedDisplayLibInternal.h.
#define BANNER_LEFT_COLUMN_INDENT 1 |
Definition at line 61 of file CustomizedDisplayLibInternal.h.
#define FOOTER_HEIGHT 4 |
Definition at line 53 of file CustomizedDisplayLibInternal.h.
#define FORMSET_CLASS_FRONT_PAGE 0x0002 |
Definition at line 49 of file CustomizedDisplayLibInternal.h.
#define FORMSET_CLASS_PLATFORM_SETUP 0x0001 |
Definition at line 48 of file CustomizedDisplayLibInternal.h.
#define FRONT_PAGE_HEADER_HEIGHT 6 |
Definition at line 51 of file CustomizedDisplayLibInternal.h.
#define INPUT_ERROR 1 |
Definition at line 71 of file CustomizedDisplayLibInternal.h.
#define NONE_FRONT_PAGE_HEADER_HEIGHT 3 |
Definition at line 52 of file CustomizedDisplayLibInternal.h.
#define NV_UPDATE_REQUIRED 2 |
Definition at line 76 of file CustomizedDisplayLibInternal.h.
#define STATUS_BAR_HEIGHT 1 |
Definition at line 54 of file CustomizedDisplayLibInternal.h.
#define UPPER_LOWER_CASE_OFFSET 0x20 |
Definition at line 66 of file CustomizedDisplayLibInternal.h.
VOID FreeLibStrings | ( | VOID | ) |
Free the HII String.
Definition at line 753 of file CustomizedDisplayLibInternal.c.
VOID InitializeLibStrings | ( | VOID | ) |
Initialize the HII String Token to the correct values.
Definition at line 711 of file CustomizedDisplayLibInternal.c.
UINT64 LibGetFieldFromNum | ( | IN EFI_IFR_OP_HEADER * | OpCode | ) |
Get step info from numeric opcode.
[in] | OpCode | The input numeric op code. |
Definition at line 672 of file CustomizedDisplayLibInternal.c.
Count the storage space of a Unicode string.
This function handles the Unicode string with NARROW_CHAR and WIDE_CHAR control characters. NARROW_HCAR and WIDE_CHAR does not count in the resultant output. If a WIDE_CHAR is hit, then 2 Unicode character will consume an output storage space with size of CHAR16 till a NARROW_CHAR is hit.
If String is NULL, then ASSERT ().
String | The input string to be counted. |
Definition at line 495 of file CustomizedDisplayLibInternal.c.
CHAR16 * LibGetToken | ( | IN EFI_STRING_ID | Token, |
IN EFI_HII_HANDLE | HiiHandle | ||
) |
Get the string based on the StringId and HII Package List Handle.
Token | The String's ID. |
HiiHandle | The package list in the HII database to search for the specified string. |
Definition at line 462 of file CustomizedDisplayLibInternal.c.
Set Buffer to Value for Size bytes.
Buffer | Memory to set. |
Size | Number of bytes to set |
Value | Value of the set operation. |
Definition at line 823 of file CustomizedDisplayLibInternal.c.
Prints a formatted unicode string to the default console, at the supplied cursor position.
Width | Width of String to be printed. |
Column | The cursor position to print the string at. |
Row | The cursor position to print the string at. |
Fmt | Format string. |
... | Variable argument list for format string. |
Definition at line 972 of file CustomizedDisplayLibInternal.c.
VOID PrintBannerInfo | ( | IN FORM_DISPLAY_ENGINE_FORM * | FormData | ) |
Print banner info for front page.
[in] | FormData | Form Data to be shown in Page |
Definition at line 47 of file CustomizedDisplayLibInternal.c.
VOID PrintFramework | ( | IN FORM_DISPLAY_ENGINE_FORM * | FormData | ) |
Print framework and form title for a page.
[in] | FormData | Form Data to be shown in Page |
Definition at line 133 of file CustomizedDisplayLibInternal.c.
VOID PrintHotKeyHelpString | ( | IN FORM_DISPLAY_ENGINE_FORM * | FormData, |
IN BOOLEAN | SetState | ||
) |
Show all registered HotKey help strings on bottom Rows.
FormData | The curent input form data info. |
SetState | Set HotKey or Clear HotKey |
Definition at line 565 of file CustomizedDisplayLibInternal.c.
VOID ProcessExternedOpcode | ( | IN FORM_DISPLAY_ENGINE_FORM * | FormData | ) |
Process some op codes which is out side of current form.
FormData | Pointer to the form data. |
Process some op codes which is out side of current form.
FormData | Pointer to the form data. |
Definition at line 346 of file CustomizedDisplayLibInternal.c.
EFI_STATUS ScreenDiemensionInfoValidate | ( | IN FORM_DISPLAY_ENGINE_FORM * | FormData | ) |
Validate the input screen diemenstion info.
FormData | The input form data info. |
Definition at line 390 of file CustomizedDisplayLibInternal.c.
EFI_STATUS WaitForKeyStroke | ( | OUT EFI_INPUT_KEY * | Key | ) |
Wait for a key to be pressed by user.
Key | The key which is pressed by user. |
EFI_SUCCESS | The function always completed successfully. |
Definition at line 791 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 34 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 29 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 18 of file CustomizedDisplayLib.c.
|
extern |
Definition at line 16 of file CustomizedDisplayLib.c.
|
extern |
Definition at line 25 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 21 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 22 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 20 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 23 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 20 of file CustomizedDisplayLib.c.
|
extern |
Definition at line 26 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 37 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 28 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 33 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 24 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 31 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 36 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 32 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 35 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 11 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 27 of file CustomizedDisplayLibInternal.c.
|
extern |
Definition at line 30 of file CustomizedDisplayLibInternal.c.