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

Go to the source code of this file.

Data Structures

struct  INPUT_BAR_COLOR_ATTRIBUTES
 
union  INPUT_BAR_COLOR_UNION
 

Functions

VOID InputBarInit (IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TextInEx)
 
VOID InputBarCleanup (VOID)
 
VOID InputBarPrintInput (IN UINTN LastColumn, IN UINTN LastRow)
 
EFI_STATUS InputBarRefresh (UINTN LastRow, UINTN LastColumn)
 
EFI_STATUS InputBarSetPrompt (IN CONST CHAR16 *Str)
 
EFI_STATUS InputBarSetStringSize (UINTN Size)
 
CONST CHAR16 * InputBarGetString (VOID)
 

Variables

CHAR16 * mPrompt
 
CHAR16 * mReturnString
 
UINTN StringSize
 
EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOLmTextInEx
 

Detailed Description

Implements inputbar interface functions.

Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file EditInputBar.c.

Function Documentation

◆ InputBarCleanup()

VOID InputBarCleanup ( VOID  )

Cleanup function for input bar.

Definition at line 37 of file EditInputBar.c.

◆ InputBarGetString()

CONST CHAR16 * InputBarGetString ( VOID  )

Function to retrieve the input from the user.

Return values
NULLNo input has been received.
Returns
The string that was input.

Definition at line 318 of file EditInputBar.c.

◆ InputBarInit()

VOID InputBarInit ( IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL TextInEx)

Initialize the input bar.

Parameters
[in]TextInExPointer to SimpleTextInEx instance in System Table.

Definition at line 23 of file EditInputBar.c.

◆ InputBarPrintInput()

VOID InputBarPrintInput ( IN UINTN  LastColumn,
IN UINTN  LastRow 
)

Display the prompt. Do the requesting of input.

Parameters
[in]LastColumnThe last printable column.
[in]LastRowThe last printable row.

Definition at line 58 of file EditInputBar.c.

◆ InputBarRefresh()

EFI_STATUS InputBarRefresh ( UINTN  LastRow,
UINTN  LastColumn 
)

The refresh function for InputBar, it will wait for user input

Parameters
[in]LastRowThe last printable row.
[in]LastColumnThe last printable column.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 118 of file EditInputBar.c.

◆ InputBarSetPrompt()

EFI_STATUS InputBarSetPrompt ( IN CONST CHAR16 *  Str)

SetPrompt and wait for input.

Parameters
[in]StrThe prompt string.
Return values
EFI_SUCCESSThe operation was successful.
EFI_OUT_OF_RESOURCESA memory allocation failed.

Definition at line 267 of file EditInputBar.c.

◆ InputBarSetStringSize()

EFI_STATUS InputBarSetStringSize ( UINTN  Size)

Set the size of the string in characters.

Parameters
[in]SizeThe max number of characters to accept.
Return values
EFI_SUCCESSThe operation was successful.
EFI_OUT_OF_RESOURCESA memory allocation failed.

Definition at line 293 of file EditInputBar.c.

Variable Documentation

◆ mPrompt

CHAR16* mPrompt

Definition at line 12 of file EditInputBar.c.

◆ mReturnString

CHAR16* mReturnString

Definition at line 13 of file EditInputBar.c.

◆ mTextInEx

Definition at line 15 of file EditInputBar.c.

◆ StringSize

UINTN StringSize

Definition at line 14 of file EditInputBar.c.