]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellDebug1CommandsLib/EditStatusBar.h
ShellPkg/[hex]edit: use SimpleTextInEx to read console
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / EditStatusBar.h
CommitLineData
2442e62a 1/** @file\r
2 Declares statusbar interface functions.\r
3\r
4 Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _LIB_STATUS_BAR_H_\r
16#define _LIB_STATUS_BAR_H_\r
17\r
18/**\r
19 Initialization function for Status Bar.\r
20\r
21 @retval EFI_SUCCESS The operation was successful.\r
22 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
23 @sa StatusBarSetStatusString\r
24**/\r
25EFI_STATUS\r
2442e62a 26StatusBarInit (\r
27 VOID\r
28 );\r
29\r
30/**\r
31 Cleanup function for the status bar.\r
32**/\r
33VOID\r
2442e62a 34StatusBarCleanup (\r
35 VOID\r
36 );\r
37\r
38/**\r
39 Cause the status bar to refresh it's printing on the screen.\r
40\r
41 @param[in] EditorFirst TRUE to indicate the first launch of the editor. \r
42 FALSE otherwise.\r
43 @param[in] LastRow LastPrintable row.\r
44 @param[in] LastCol Last printable column.\r
45 @param[in] FileRow Row in the file.\r
46 @param[in] FileCol Column in the file.\r
47 @param[in] InsertMode TRUE to indicate InsertMode. FALSE otherwise.\r
48\r
49 @retval EFI_SUCCESS The operation was successful.\r
50**/\r
51EFI_STATUS\r
2442e62a 52StatusBarRefresh (\r
53 IN BOOLEAN EditorFirst,\r
54 IN UINTN LastRow,\r
55 IN UINTN LastCol,\r
56 IN UINTN FileRow,\r
57 IN UINTN FileCol,\r
58 IN BOOLEAN InsertMode\r
59 );\r
60\r
61/**\r
62 Set the status string text part.\r
63\r
64 @param[in] Str The string to use.\r
65\r
66 @retval EFI_SUCCESS The operation was successful.\r
67 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
68**/\r
69EFI_STATUS\r
2442e62a 70StatusBarSetStatusString (\r
71 IN CHAR16 *Str\r
72 );\r
73\r
74/**\r
75 Function to retrieve the current status string.\r
76\r
77 @return The string that is used.\r
78**/\r
79CONST CHAR16*\r
2442e62a 80StatusBarGetString (\r
81 VOID\r
82 );\r
83\r
84/**\r
85 Function to set the need refresh boolean to TRUE.\r
86**/\r
87VOID\r
2442e62a 88StatusBarSetRefresh(\r
89 VOID\r
90 );\r
91\r
92/**\r
93 Function to get the need refresh boolean to TRUE.\r
94\r
95 @retval TRUE The status bar needs to be refreshed.\r
96**/\r
97BOOLEAN\r
2442e62a 98StatusBarGetRefresh(\r
99 VOID\r
100 );\r
101\r
102#endif\r