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

Go to the source code of this file.

Data Structures

struct  STATUS_BAR_COLOR_ATTRIBUTES
 
union  STATUS_BAR_COLOR_UNION
 

Functions

EFI_STATUS StatusBarInit (VOID)
 
VOID StatusBarCleanup (VOID)
 
EFI_STATUS StatusBarRefresh (IN BOOLEAN EditorFirst, IN UINTN LastRow, IN UINTN LastCol, IN UINTN FileRow, IN UINTN FileCol, IN BOOLEAN InsertMode)
 
EFI_STATUS StatusBarSetStatusString (IN CHAR16 *Str)
 
CONST CHAR16 * StatusBarGetString (VOID)
 
VOID StatusBarSetRefresh (VOID)
 
BOOLEAN StatusBarGetRefresh (VOID)
 

Variables

CHAR16 * StatusString
 
BOOLEAN StatusBarNeedRefresh
 
BOOLEAN StatusStringChanged
 

Detailed Description

Implements statusbar interface functions.

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

Definition in file EditStatusBar.c.

Function Documentation

◆ StatusBarCleanup()

VOID StatusBarCleanup ( VOID  )

Cleanup function for the status bar.

Definition at line 45 of file EditStatusBar.c.

◆ StatusBarGetRefresh()

BOOLEAN StatusBarGetRefresh ( VOID  )

Function to get the need refresh boolean to TRUE.

Return values
TRUEThe status bar needs to be refreshed.

Definition at line 221 of file EditStatusBar.c.

◆ StatusBarGetString()

CONST CHAR16 * StatusBarGetString ( VOID  )

Function to retrieve the current status string.

Returns
The string that is used.

Definition at line 197 of file EditStatusBar.c.

◆ StatusBarInit()

EFI_STATUS StatusBarInit ( VOID  )

Initialization function for Status Bar.

Return values
EFI_SUCCESSThe operation was successful.
EFI_OUT_OF_RESOURCESA memory allocation failed.
See also
StatusBarSetStatusString

Definition at line 24 of file EditStatusBar.c.

◆ StatusBarRefresh()

EFI_STATUS StatusBarRefresh ( IN BOOLEAN  EditorFirst,
IN UINTN  LastRow,
IN UINTN  LastCol,
IN UINTN  FileRow,
IN UINTN  FileCol,
IN BOOLEAN  InsertMode 
)

Cause the status bar to refresh it's printing on the screen.

Parameters
[in]EditorFirstTRUE to indicate the first launch of the editor. FALSE otherwise.
[in]LastRowLastPrintable row.
[in]LastColLast printable column.
[in]FileRowRow in the file.
[in]FileColColumn in the file.
[in]InsertModeTRUE to indicate InsertMode. FALSE otherwise.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 79 of file EditStatusBar.c.

◆ StatusBarSetRefresh()

VOID StatusBarSetRefresh ( VOID  )

Function to set the need refresh boolean to TRUE.

Definition at line 208 of file EditStatusBar.c.

◆ StatusBarSetStatusString()

EFI_STATUS StatusBarSetStatusString ( IN CHAR16 *  Str)

Set the status string text part.

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

Definition at line 173 of file EditStatusBar.c.

Variable Documentation

◆ StatusBarNeedRefresh

BOOLEAN StatusBarNeedRefresh

Definition at line 13 of file EditStatusBar.c.

◆ StatusString

CHAR16* StatusString

Definition at line 12 of file EditStatusBar.c.

◆ StatusStringChanged

BOOLEAN StatusStringChanged

Definition at line 14 of file EditStatusBar.c.