TianoCore EDK2 master
|
#include "FormDisplay.h"
Go to the source code of this file.
Macros | |
#define | MAX_TIME_OUT_LEN 0x10 |
Functions | |
VOID | NewStrCat (IN OUT CHAR16 *Destination, IN UINTN DestMax, IN CHAR16 *Source) |
UINT64 | HiiValueToUINT64 (IN EFI_HII_VALUE *Value) |
BOOLEAN | IsTypeInBuffer (IN EFI_HII_VALUE *Value) |
BOOLEAN | IsTypeInUINT64 (IN EFI_HII_VALUE *Value) |
VOID | GetBufAndLenForValue (IN EFI_HII_VALUE *Value, OUT UINT8 **Buf, OUT UINT16 *BufLen) |
EFI_STATUS | CompareHiiValue (IN EFI_HII_VALUE *Value1, IN EFI_HII_VALUE *Value2, OUT INTN *Result, IN EFI_HII_HANDLE HiiHandle OPTIONAL) |
DISPLAY_QUESTION_OPTION * | ValueToOption (IN FORM_DISPLAY_ENGINE_STATEMENT *Question, IN EFI_HII_VALUE *OptionValue) |
UINT64 | GetArrayData (IN VOID *Array, IN UINT8 Type, IN UINTN Index) |
VOID | SetArrayData (IN VOID *Array, IN UINT8 Type, IN UINTN Index, IN UINT64 Value) |
BOOLEAN | FindArrayData (IN VOID *Array, IN UINT8 Type, IN UINT64 Value, OUT UINTN *Index OPTIONAL) |
EFI_STATUS | PrintFormattedNumber (IN FORM_DISPLAY_ENGINE_STATEMENT *Question, IN OUT CHAR16 *FormattedNumber, IN UINTN BufferSize) |
VOID | CreateSharedPopUp (IN UINTN RequestedWidth, IN UINTN NumberOfLines, IN VA_LIST Marker) |
VOID EFIAPI | CreateMultiStringPopUp (IN UINTN RequestedWidth, IN UINTN NumberOfLines,...) |
VOID EFIAPI | EmptyEventProcess (IN EFI_EVENT Event, IN VOID *Context) |
VOID EFIAPI | RefreshTimeOutProcess (IN EFI_EVENT Event, IN VOID *Context) |
VOID | PasswordInvalid (VOID) |
EFI_STATUS | PasswordProcess (IN UI_MENU_OPTION *MenuOption) |
VOID | PrintMismatchMenuInfo (IN UI_MENU_OPTION *MenuOption) |
EFI_STATUS | ProcessOptions (IN UI_MENU_OPTION *MenuOption, IN BOOLEAN Selected, OUT CHAR16 **OptionString, IN BOOLEAN SkipErrorValue) |
UINTN | ProcessHelpString (IN CHAR16 *StringPtr, OUT CHAR16 **FormattedString, OUT UINT16 *EachLineWidth, IN UINTN RowCount) |
Implementation for handling the User Interface option processing.
Copyright (c) 2004 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ProcessOptions.c.
#define MAX_TIME_OUT_LEN 0x10 |
Definition at line 12 of file ProcessOptions.c.
EFI_STATUS CompareHiiValue | ( | IN EFI_HII_VALUE * | Value1, |
IN EFI_HII_VALUE * | Value2, | ||
OUT INTN * | Result, | ||
IN EFI_HII_HANDLE HiiHandle | OPTIONAL | ||
) |
Compare two Hii value.
Value1 | Expression value to compare on left-hand. |
Value2 | Expression value to compare on right-hand. |
Result | Return value after compare. retval 0 Two operators equal. return Positive value if Value1 is greater than Value2. retval Negative value if Value1 is less than Value2. |
HiiHandle | Only required for string compare. |
other | Could not perform compare on two values. |
EFI_SUCCESS | Compare the value success. |
Definition at line 214 of file ProcessOptions.c.
Draw a pop up windows based on the dimension, number of lines and strings specified.
RequestedWidth | The width of the pop-up. |
NumberOfLines | The number of lines. |
... | A series of text strings that displayed in the pop-up. |
Definition at line 689 of file ProcessOptions.c.
Draw a pop up windows based on the dimension, number of lines and strings specified.
RequestedWidth | The width of the pop-up. |
NumberOfLines | The number of lines. |
Marker | The variable argument list for the list of string to be printed. |
Definition at line 583 of file ProcessOptions.c.
Process nothing.
Event | The Event need to be process |
Context | The context of the event. |
Definition at line 713 of file ProcessOptions.c.
BOOLEAN FindArrayData | ( | IN VOID * | Array, |
IN UINT8 | Type, | ||
IN UINT64 | Value, | ||
OUT UINTN *Index | OPTIONAL | ||
) |
Check whether this value already in the array, if yes, return the index.
Array | The data array. |
Type | Type of the data in this array. |
Value | The value to be find. |
Index | The index in the array which has same value with Value. |
TRUE | Found the value in the array. |
FALSE | Not found the value. |
Definition at line 443 of file ProcessOptions.c.
Return data element in an Array by its Index.
Array | The data array. |
Type | Type of the data in this array. |
Index | Zero based index for data in this array. |
Value | The data to be returned |
Definition at line 354 of file ProcessOptions.c.
VOID GetBufAndLenForValue | ( | IN EFI_HII_VALUE * | Value, |
OUT UINT8 ** | Buf, | ||
OUT UINT16 * | BufLen | ||
) |
Return the buffer length and buffer pointer for this value.
EFI_IFR_TYPE_REF, EFI_IFR_TYPE_DATE and EFI_IFR_TYPE_TIME are converted to EFI_IFR_TYPE_BUFFER when do the value compare.
Value | Expression value to compare on. |
Buf | Return the buffer pointer. |
BufLen | Return the buffer length. |
Definition at line 165 of file ProcessOptions.c.
UINT64 HiiValueToUINT64 | ( | IN EFI_HII_VALUE * | Value | ) |
Get UINT64 type value.
Value | Input Hii value. |
UINT64 | Return the UINT64 type value. |
Definition at line 56 of file ProcessOptions.c.
BOOLEAN IsTypeInBuffer | ( | IN EFI_HII_VALUE * | Value | ) |
Check whether this value type can be transfer to EFI_IFR_TYPE_BUFFER type.
EFI_IFR_TYPE_REF, EFI_IFR_TYPE_DATE and EFI_IFR_TYPE_TIME are converted to EFI_IFR_TYPE_BUFFER when do the value compare.
Value | Expression value to compare on. |
TRUE | This value type can be transter to EFI_IFR_TYPE_BUFFER type. |
FALSE | This value type can't be transter to EFI_IFR_TYPE_BUFFER type. |
Definition at line 110 of file ProcessOptions.c.
BOOLEAN IsTypeInUINT64 | ( | IN EFI_HII_VALUE * | Value | ) |
Check whether this value type can be transfer to EFI_IFR_TYPE_UINT64
Value | Expression value to compare on. |
TRUE | This value type can be transter to EFI_IFR_TYPE_BUFFER type. |
FALSE | This value type can't be transter to EFI_IFR_TYPE_BUFFER type. |
Definition at line 136 of file ProcessOptions.c.
Concatenate a narrow string to another string.
Destination | The destination string. |
DestMax | The Max length of destination string. |
Source | The source string. The string to be concatenated. to the end of Destination. |
Definition at line 24 of file ProcessOptions.c.
VOID PasswordInvalid | ( | VOID | ) |
Display error message for invalid password.
Definition at line 758 of file ProcessOptions.c.
EFI_STATUS PasswordProcess | ( | IN UI_MENU_OPTION * | MenuOption | ) |
Process password op code.
MenuOption | The menu for current password op code. |
EFI_SUCCESS | Question Option process success. |
Other | Question Option process fail. |
Definition at line 782 of file ProcessOptions.c.
EFI_STATUS PrintFormattedNumber | ( | IN FORM_DISPLAY_ENGINE_STATEMENT * | Question, |
IN OUT CHAR16 * | FormattedNumber, | ||
IN UINTN | BufferSize | ||
) |
Print Question Value according to it's storage width and display attributes.
Question | The Question to be printed. |
FormattedNumber | Buffer for output string. |
BufferSize | The FormattedNumber buffer size in bytes. |
EFI_SUCCESS | Print success. |
EFI_BUFFER_TOO_SMALL | Buffer size is not enough for formatted number. |
Definition at line 508 of file ProcessOptions.c.
VOID PrintMismatchMenuInfo | ( | IN UI_MENU_OPTION * | MenuOption | ) |
Print some debug message about mismatched menu info.
MenuOption | The MenuOption for this Question. |
Definition at line 926 of file ProcessOptions.c.
UINTN ProcessHelpString | ( | IN CHAR16 * | StringPtr, |
OUT CHAR16 ** | FormattedString, | ||
OUT UINT16 * | EachLineWidth, | ||
IN UINTN | RowCount | ||
) |
Process the help string: Split StringPtr to several lines of strings stored in FormattedString and the glyph width of each line cannot exceed gHelpBlockWidth.
StringPtr | The entire help string. |
FormattedString | The oupput formatted string. |
EachLineWidth | The max string length of each line in the formatted string. |
RowCount | TRUE: if Question is selected. |
Definition at line 1560 of file ProcessOptions.c.
EFI_STATUS ProcessOptions | ( | IN UI_MENU_OPTION * | MenuOption, |
IN BOOLEAN | Selected, | ||
OUT CHAR16 ** | OptionString, | ||
IN BOOLEAN | SkipErrorValue | ||
) |
Process a Question's Option (whether selected or un-selected).
MenuOption | The MenuOption for this Question. |
Selected | TRUE: if Question is selected. |
OptionString | Pointer of the Option String to be displayed. |
SkipErrorValue | Whether need to return when value without option for it. |
EFI_SUCCESS | Question Option process success. |
Other | Question Option process fail. |
Definition at line 1044 of file ProcessOptions.c.
Process for the refresh interval statement.
Event | The Event need to be process |
Context | The context of the event. |
Definition at line 729 of file ProcessOptions.c.
Set value of a data element in an Array by its Index.
Array | The data array. |
Type | Type of the data in this array. |
Index | Zero based index for data in this array. |
Value | The value to be set. |
Definition at line 399 of file ProcessOptions.c.
DISPLAY_QUESTION_OPTION * ValueToOption | ( | IN FORM_DISPLAY_ENGINE_STATEMENT * | Question, |
IN EFI_HII_VALUE * | OptionValue | ||
) |
Search an Option of a Question by its value.
Question | The Question |
OptionValue | Value for Option to be searched. |
Pointer | Pointer to the found Option. |
NULL | Option not found. |
Definition at line 315 of file ProcessOptions.c.