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

Go to the source code of this file.

Functions

VOID MenuBarCleanup (VOID)
 
EFI_STATUS MenuBarInit (IN CONST EDITOR_MENU_ITEM *Items)
 
EFI_STATUS ControlHotKeyInit (IN MENU_ITEM_FUNCTION *Items)
 
EFI_STATUS MenuBarRefresh (IN CONST UINTN LastRow, IN CONST UINTN LastCol)
 
EFI_STATUS MenuBarDispatchFunctionKey (IN CONST EFI_INPUT_KEY *Key)
 
EFI_STATUS MenuBarDispatchControlHotKey (IN CONST EFI_KEY_DATA *KeyData)
 

Variables

EDITOR_MENU_ITEMMenuItems
 
MENU_ITEM_FUNCTION * ControlBasedMenuFunctions
 
UINTN NumItems
 

Detailed Description

implements menubar interface functions.

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

Definition in file EditMenuBar.c.

Function Documentation

◆ ControlHotKeyInit()

EFI_STATUS ControlHotKeyInit ( IN MENU_ITEM_FUNCTION *  Items)

Initialize the control hot-key with the specified items.

Parameters
[in]ItemsThe hot-key functions.
Return values
EFI_SUCCESSThe initialization was correct.

Definition at line 63 of file EditMenuBar.c.

◆ MenuBarCleanup()

VOID MenuBarCleanup ( VOID  )

Cleanup function for a menu bar. frees all allocated memory.

Definition at line 21 of file EditMenuBar.c.

◆ MenuBarDispatchControlHotKey()

EFI_STATUS MenuBarDispatchControlHotKey ( IN CONST EFI_KEY_DATA KeyData)

Function to dispatch the correct function based on a control-based key (ctrl+o...)

Parameters
[in]KeyDataThe pressed key.
Return values
EFI_NOT_FOUNDThe key was not a valid control-based key (an error was sent to the status bar).
Returns
EFI_SUCCESS.

Definition at line 175 of file EditMenuBar.c.

◆ MenuBarDispatchFunctionKey()

EFI_STATUS MenuBarDispatchFunctionKey ( IN CONST EFI_INPUT_KEY Key)

Function to dispatch the correct function based on a function key (F1...)

Parameters
[in]KeyThe pressed key.
Return values
EFI_NOT_FOUNDThe key was not a valid function key (an error was sent to the status bar).
Returns
The return value from the called dispatch function.

Definition at line 146 of file EditMenuBar.c.

◆ MenuBarInit()

EFI_STATUS MenuBarInit ( IN CONST EDITOR_MENU_ITEM Items)

Initialize the menu bar with the specified items.

Parameters
[in]ItemsThe items to display and their functions.
Return values
EFI_SUCCESSThe initialization was correct.
EFI_OUT_OF_RESOURCESA memory allocation failed.

Definition at line 37 of file EditMenuBar.c.

◆ MenuBarRefresh()

EFI_STATUS MenuBarRefresh ( IN CONST UINTN  LastRow,
IN CONST UINTN  LastCol 
)

Refresh function for the menu bar.

Parameters
[in]LastRowThe last printable row.
[in]LastColThe last printable column.
Return values
EFI_SUCCESSThe refresh was successful.

Definition at line 80 of file EditMenuBar.c.

Variable Documentation

◆ ControlBasedMenuFunctions

MENU_ITEM_FUNCTION* ControlBasedMenuFunctions

Definition at line 14 of file EditMenuBar.c.

◆ MenuItems

EDITOR_MENU_ITEM* MenuItems

Definition at line 13 of file EditMenuBar.c.

◆ NumItems

UINTN NumItems

Definition at line 15 of file EditMenuBar.c.