TianoCore EDK2 master
|
#include "FormDisplay.h"
Go to the source code of this file.
Functions | |
VOID | GetFieldFromOp (IN EFI_IFR_OP_HEADER *OpCode, OUT UINTN *Minimum, OUT UINTN *Maximum) |
EFI_STATUS | ReadString (IN UI_MENU_OPTION *MenuOption, IN CHAR16 *Prompt, IN OUT CHAR16 *StringPtr) |
VOID | AdjustQuestionValue (IN EFI_HII_VALUE *QuestionValue, IN UINT8 Sequence) |
VOID | GetValueFromNum (IN EFI_IFR_OP_HEADER *OpCode, IN BOOLEAN IntInput, IN EFI_HII_VALUE *QuestionValue, OUT UINT64 *Value, OUT UINT64 *Minimum, OUT UINT64 *Maximum, OUT UINT64 *Step, OUT UINT16 *StorageWidth) |
EFI_STATUS | GetNumericInput (IN UI_MENU_OPTION *MenuOption) |
EFI_STATUS | AdjustOptionOrder (IN FORM_DISPLAY_ENGINE_STATEMENT *Question, OUT UINTN *PopUpMenuLines) |
BOOLEAN | IsValuesEqual (IN EFI_IFR_TYPE_VALUE *Value1, IN EFI_IFR_TYPE_VALUE *Value2, IN UINT8 Type) |
VOID | SetValuesByType (OUT EFI_IFR_TYPE_VALUE *Dest, IN EFI_IFR_TYPE_VALUE *Source, IN UINT8 Type) |
EFI_STATUS | GetSelectionInputPopUp (IN UI_MENU_OPTION *MenuOption) |
Implementation for handling user input from the User Interfaces.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file InputHandler.c.
EFI_STATUS AdjustOptionOrder | ( | IN FORM_DISPLAY_ENGINE_STATEMENT * | Question, |
OUT UINTN * | PopUpMenuLines | ||
) |
Adjust option order base on the question value.
Question | Pointer to current question. |
PopUpMenuLines | The line number of the pop up menu. |
EFI_SUCCESS | If Option input is processed successfully |
EFI_DEVICE_ERROR | If operation fails |
Definition at line 1133 of file InputHandler.c.
VOID AdjustQuestionValue | ( | IN EFI_HII_VALUE * | QuestionValue, |
IN UINT8 | Sequence | ||
) |
Adjust the value to the correct one. Rules follow the sample: like: Year change: 2012.02.29 -> 2013.02.29 -> 2013.02.01 Month change: 2013.03.29 -> 2013.02.29 -> 2013.02.28
QuestionValue | Pointer to current question. |
Sequence | The sequence of the field in the question. |
Definition at line 325 of file InputHandler.c.
Get maximum and minimum info from this opcode.
OpCode | Pointer to the current input opcode. |
Minimum | The minimum size info for this opcode. |
Maximum | The maximum size info for this opcode. |
Definition at line 21 of file InputHandler.c.
EFI_STATUS GetNumericInput | ( | IN UI_MENU_OPTION * | MenuOption | ) |
This routine reads a numeric value from the user input.
MenuOption | Pointer to the current input menu. |
EFI_SUCCESS | If numerical input is read successfully |
EFI_DEVICE_ERROR | If operation fails |
Definition at line 487 of file InputHandler.c.
EFI_STATUS GetSelectionInputPopUp | ( | IN UI_MENU_OPTION * | MenuOption | ) |
Get selection for OneOf and OrderedList (Left/Right will be ignored).
MenuOption | Pointer to the current input menu. |
EFI_SUCCESS | If Option input is processed successfully |
EFI_DEVICE_ERROR | If operation fails |
Definition at line 1280 of file InputHandler.c.
VOID GetValueFromNum | ( | IN EFI_IFR_OP_HEADER * | OpCode, |
IN BOOLEAN | IntInput, | ||
IN EFI_HII_VALUE * | QuestionValue, | ||
OUT UINT64 * | Value, | ||
OUT UINT64 * | Minimum, | ||
OUT UINT64 * | Maximum, | ||
OUT UINT64 * | Step, | ||
OUT UINT16 * | StorageWidth | ||
) |
Get field info from numeric opcode.
OpCode | Pointer to the current input opcode. |
IntInput | Whether question shows with EFI_IFR_DISPLAY_INT_DEC type. |
QuestionValue | Input question value, with EFI_HII_VALUE type. |
Value | Return question value, always return UINT64 type. |
Minimum | The minimum size info for this opcode. |
Maximum | The maximum size info for this opcode. |
Step | The step size info for this opcode. |
StorageWidth | The storage width info for this opcode. |
Definition at line 392 of file InputHandler.c.
BOOLEAN IsValuesEqual | ( | IN EFI_IFR_TYPE_VALUE * | Value1, |
IN EFI_IFR_TYPE_VALUE * | Value2, | ||
IN UINT8 | Type | ||
) |
Base on the type to compare the value.
Value1 | The first value need to compare. |
Value2 | The second value need to compare. |
Type | The value type for above two values. |
TRUE | The two value are same. |
FALSE | The two value are different. |
Definition at line 1202 of file InputHandler.c.
EFI_STATUS ReadString | ( | IN UI_MENU_OPTION * | MenuOption, |
IN CHAR16 * | Prompt, | ||
IN OUT CHAR16 * | StringPtr | ||
) |
Get string or password input from user.
MenuOption | Pointer to the current input menu. |
Prompt | The prompt string shown on popup window. |
StringPtr | Old user input and destination for use input string. |
EFI_SUCCESS | If string input is read successfully |
EFI_DEVICE_ERROR | If operation fails |
Definition at line 56 of file InputHandler.c.
VOID SetValuesByType | ( | OUT EFI_IFR_TYPE_VALUE * | Dest, |
IN EFI_IFR_TYPE_VALUE * | Source, | ||
IN UINT8 | Type | ||
) |
Base on the type to set the value.
Dest | The dest value. |
Source | The source value. |
Type | The value type for above two values. |
Definition at line 1237 of file InputHandler.c.