TianoCore EDK2 master
Loading...
Searching...
No Matches
CustomizedDisplayLibInternal.c File Reference

Go to the source code of this file.

Macros

#define SPACE_BUFFER_SIZE   1000
 

Functions

VOID PrintBannerInfo (IN FORM_DISPLAY_ENGINE_FORM *FormData)
 
VOID PrintFramework (IN FORM_DISPLAY_ENGINE_FORM *FormData)
 
VOID ProcessUserOpcode (IN EFI_IFR_OP_HEADER *OpCodeData)
 
VOID ProcessExternedOpcode (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 PrintInternal (IN UINTN Width, IN UINTN Column, IN UINTN Row, IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *Out, IN CHAR16 *Fmt, IN VA_LIST Args)
 
UINTN EFIAPI PrintAt (IN UINTN Width, IN UINTN Column, IN UINTN Row, IN CHAR16 *Fmt,...)
 

Variables

EFI_SCREEN_DESCRIPTOR gScreenDimensions
 
CHAR16 * mLibUnknownString
 
EFI_HII_HANDLE mCDLStringPackHandle
 
CHAR16 * mSpaceBuffer
 
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
 

Detailed Description

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.c.

Macro Definition Documentation

◆ SPACE_BUFFER_SIZE

#define SPACE_BUFFER_SIZE   1000

Definition at line 15 of file CustomizedDisplayLibInternal.c.

Function Documentation

◆ FreeLibStrings()

VOID FreeLibStrings ( VOID  )

Free the HII String.

Definition at line 753 of file CustomizedDisplayLibInternal.c.

◆ InitializeLibStrings()

VOID InitializeLibStrings ( VOID  )

Initialize the HII String Token to the correct values.

Definition at line 711 of file CustomizedDisplayLibInternal.c.

◆ LibGetFieldFromNum()

UINT64 LibGetFieldFromNum ( IN EFI_IFR_OP_HEADER OpCode)

Get step info from numeric opcode.

Parameters
[in]OpCodeThe input numeric op code.
Returns
step info for this opcode.

Definition at line 672 of file CustomizedDisplayLibInternal.c.

◆ LibGetStringWidth()

UINTN LibGetStringWidth ( IN CHAR16 *  String)

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 ().

Parameters
StringThe input string to be counted.
Returns
Storage space for the input string.

Definition at line 495 of file CustomizedDisplayLibInternal.c.

◆ LibGetToken()

CHAR16 * LibGetToken ( IN EFI_STRING_ID  Token,
IN EFI_HII_HANDLE  HiiHandle 
)

Get the string based on the StringId and HII Package List Handle.

Parameters
TokenThe String's ID.
HiiHandleThe package list in the HII database to search for the specified string.
Returns
The output string.

Definition at line 462 of file CustomizedDisplayLibInternal.c.

◆ LibSetUnicodeMem()

VOID LibSetUnicodeMem ( IN VOID *  Buffer,
IN UINTN  Size,
IN CHAR16  Value 
)

Set Buffer to Value for Size bytes.

Parameters
BufferMemory to set.
SizeNumber of bytes to set
ValueValue of the set operation.

Definition at line 823 of file CustomizedDisplayLibInternal.c.

◆ PrintAt()

UINTN EFIAPI PrintAt ( IN UINTN  Width,
IN UINTN  Column,
IN UINTN  Row,
IN CHAR16 *  Fmt,
  ... 
)

Prints a formatted unicode string to the default console, at the supplied cursor position.

Parameters
WidthWidth of String to be printed.
ColumnThe cursor position to print the string at.
RowThe cursor position to print the string at.
FmtFormat string.
...Variable argument list for format string.
Returns
Length of string printed to the console

Definition at line 972 of file CustomizedDisplayLibInternal.c.

◆ PrintBannerInfo()

VOID PrintBannerInfo ( IN FORM_DISPLAY_ENGINE_FORM FormData)

Print banner info for front page.

Parameters
[in]FormDataForm Data to be shown in Page

Definition at line 47 of file CustomizedDisplayLibInternal.c.

◆ PrintFramework()

VOID PrintFramework ( IN FORM_DISPLAY_ENGINE_FORM FormData)

Print framework and form title for a page.

Parameters
[in]FormDataForm Data to be shown in Page

Definition at line 133 of file CustomizedDisplayLibInternal.c.

◆ PrintHotKeyHelpString()

VOID PrintHotKeyHelpString ( IN FORM_DISPLAY_ENGINE_FORM FormData,
IN BOOLEAN  SetState 
)

Show all registered HotKey help strings on bottom Rows.

Parameters
FormDataThe curent input form data info.
SetStateSet HotKey or Clear HotKey

Definition at line 565 of file CustomizedDisplayLibInternal.c.

◆ PrintInternal()

UINTN PrintInternal ( IN UINTN  Width,
IN UINTN  Column,
IN UINTN  Row,
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL Out,
IN CHAR16 *  Fmt,
IN VA_LIST  Args 
)

The internal function prints to the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL protocol instance.

Parameters
WidthWidth of string to be print.
ColumnThe position of the output string.
RowThe position of the output string.
OutThe EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.
FmtThe format string.
ArgsThe additional argument for the variables in the format string.
Returns
Number of Unicode character printed.

Definition at line 852 of file CustomizedDisplayLibInternal.c.

◆ ProcessExternedOpcode()

VOID ProcessExternedOpcode ( IN FORM_DISPLAY_ENGINE_FORM FormData)

Process some op codes which is out side of current form.

Parameters
FormDataPointer to the form data.
Returns
EFI_SUCCESS Pass the statement success.

Definition at line 346 of file CustomizedDisplayLibInternal.c.

◆ ProcessUserOpcode()

VOID ProcessUserOpcode ( IN EFI_IFR_OP_HEADER OpCodeData)

Process some op code which is not recognized by browser core.

Parameters
OpCodeDataThe pointer to the op code buffer.
Returns
EFI_SUCCESS Pass the statement success.

Definition at line 251 of file CustomizedDisplayLibInternal.c.

◆ ScreenDiemensionInfoValidate()

EFI_STATUS ScreenDiemensionInfoValidate ( IN FORM_DISPLAY_ENGINE_FORM FormData)

Validate the input screen diemenstion info.

Parameters
FormDataThe input form data info.
Returns
EFI_SUCCESS The input screen info is acceptable.
EFI_INVALID_PARAMETER The input screen info is not acceptable.

Definition at line 390 of file CustomizedDisplayLibInternal.c.

◆ WaitForKeyStroke()

EFI_STATUS WaitForKeyStroke ( OUT EFI_INPUT_KEY Key)

Wait for a key to be pressed by user.

Parameters
KeyThe key which is pressed by user.
Return values
EFI_SUCCESSThe function always completed successfully.

Definition at line 791 of file CustomizedDisplayLibInternal.c.

Variable Documentation

◆ gAdjustNumber

CHAR16* gAdjustNumber

Definition at line 34 of file CustomizedDisplayLibInternal.c.

◆ gAreYouSure

CHAR16* gAreYouSure

Definition at line 29 of file CustomizedDisplayLibInternal.c.

◆ gDecNumericInput

CHAR16* gDecNumericInput

Definition at line 25 of file CustomizedDisplayLibInternal.c.

◆ gEnterCommitString

CHAR16* gEnterCommitString

Definition at line 21 of file CustomizedDisplayLibInternal.c.

◆ gEnterEscapeString

CHAR16* gEnterEscapeString

Definition at line 22 of file CustomizedDisplayLibInternal.c.

◆ gEnterString

CHAR16* gEnterString

Definition at line 20 of file CustomizedDisplayLibInternal.c.

◆ gEscapeString

CHAR16* gEscapeString

Definition at line 23 of file CustomizedDisplayLibInternal.c.

◆ gHexNumericInput

CHAR16* gHexNumericInput

Definition at line 26 of file CustomizedDisplayLibInternal.c.

◆ gInputErrorMessage

CHAR16* gInputErrorMessage

Definition at line 37 of file CustomizedDisplayLibInternal.c.

◆ gLibEmptyString

CHAR16* gLibEmptyString

Definition at line 28 of file CustomizedDisplayLibInternal.c.

◆ gMinusString

CHAR16* gMinusString

Definition at line 33 of file CustomizedDisplayLibInternal.c.

◆ gMoveHighlight

CHAR16* gMoveHighlight

Definition at line 24 of file CustomizedDisplayLibInternal.c.

◆ gNoResponse

CHAR16* gNoResponse

Definition at line 31 of file CustomizedDisplayLibInternal.c.

◆ gNvUpdateMessage

CHAR16* gNvUpdateMessage

Definition at line 36 of file CustomizedDisplayLibInternal.c.

◆ gPlusString

CHAR16* gPlusString

Definition at line 32 of file CustomizedDisplayLibInternal.c.

◆ gSaveChanges

CHAR16* gSaveChanges

Definition at line 35 of file CustomizedDisplayLibInternal.c.

◆ gScreenDimensions

EFI_SCREEN_DESCRIPTOR gScreenDimensions

Definition at line 11 of file CustomizedDisplayLibInternal.c.

◆ gToggleCheckBox

CHAR16* gToggleCheckBox

Definition at line 27 of file CustomizedDisplayLibInternal.c.

◆ gYesResponse

CHAR16* gYesResponse

Definition at line 30 of file CustomizedDisplayLibInternal.c.

◆ mCDLStringPackHandle

EFI_HII_HANDLE mCDLStringPackHandle
extern

Definition at line 15 of file CustomizedDisplayLib.c.

◆ mLibUnknownString

CHAR16* mLibUnknownString

Definition at line 12 of file CustomizedDisplayLibInternal.c.

◆ mSpaceBuffer

CHAR16* mSpaceBuffer

Definition at line 14 of file CustomizedDisplayLibInternal.c.