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

Go to the source code of this file.

Data Structures

struct  TITLE_BAR_COLOR_ATTRIBUTES
 
union  TITLE_BAR_COLOR_UNION
 

Functions

EFI_STATUS MainTitleBarInit (CONST CHAR16 *Prompt)
 
VOID MainTitleBarCleanup (VOID)
 
EFI_STATUS MainTitleBarRefresh (IN CONST CHAR16 *FileName OPTIONAL, IN CONST EDIT_FILE_TYPE FileType, IN CONST BOOLEAN ReadOnly, IN CONST BOOLEAN Modified, IN CONST UINTN LastCol, IN CONST UINTN LastRow, IN CONST UINTN Offset, IN CONST UINTN Size)
 

Variables

CHAR16 * Title = NULL
 

Detailed Description

Implements titlebar interface functions.

(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file EditTitleBar.c.

Function Documentation

◆ MainTitleBarCleanup()

VOID MainTitleBarCleanup ( VOID  )

Clean up the memory used.

Definition at line 49 of file EditTitleBar.c.

◆ MainTitleBarInit()

EFI_STATUS MainTitleBarInit ( CONST CHAR16 *  Prompt)

Initialize a title bar.

Parameters
[in]PromptThe prompt to print in the title bar.
Return values
EFI_SUCCESSThe initialization was successful.
EFI_OUT_OF_RESOURCESA memory allocation failed.

Definition at line 24 of file EditTitleBar.c.

◆ MainTitleBarRefresh()

EFI_STATUS MainTitleBarRefresh ( IN CONST CHAR16 *FileName  OPTIONAL,
IN CONST EDIT_FILE_TYPE  FileType,
IN CONST BOOLEAN  ReadOnly,
IN CONST BOOLEAN  Modified,
IN CONST UINTN  LastCol,
IN CONST UINTN  LastRow,
IN CONST UINTN  Offset,
IN CONST UINTN  Size 
)

Refresh function for MainTitleBar

Parameters
[in]FileNameThe open file's name (or NULL).
[in]FileTypeThe type fo the file.
[in]ReadOnlyTRUE if the file is read only. FALSE otherwise.
[in]ModifiedTRUE if the file was modified. FALSE otherwise.
[in]LastColThe last printable column.
[in]LastRowThe last printable row.
[in]OffsetThe offset into the file. (only for mem/disk)
[in]SizeThe file's size. (only for mem/disk)
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 82 of file EditTitleBar.c.

Variable Documentation

◆ Title

CHAR16* Title = NULL

Definition at line 13 of file EditTitleBar.c.