2 Declares imputbar interface functions.
4 Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _LIB_INPUT_BAR_H_
10 #define _LIB_INPUT_BAR_H_
13 Initialize the input bar.
15 @param[in] TextInEx Pointer to SimpleTextInEx instance in System Table.
19 IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL
*TextInEx
23 Cleanup function for input bar.
31 The refresh function for InputBar, it will wait for user input
33 @param[in] LastRow The last printable row.
34 @param[in] LastColumn The last printable column.
36 @retval EFI_SUCCESS The operation was successful.
45 SetPrompt and wait for input.
47 @param[in] Str The prompt string.
49 @retval EFI_SUCCESS The operation was successful.
50 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
58 Set the size of the string in characters.
60 @param[in] Size The max number of characters to accept.
62 @retval EFI_SUCCESS The operation was successful.
63 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
66 InputBarSetStringSize (
71 Function to retrieve the input from the user.
73 @retval NULL No input has been received.
74 @return The string that was input.