2 Declares menubar interface functions.
4 Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _LIB_MENU_BAR_H_
16 #define _LIB_MENU_BAR_H_
20 (EFIAPI
*MENU_ITEM_FUNCTION
) (
24 typedef struct _EDITOR_MENU_ITEM
{
25 EFI_STRING_ID NameToken
;
26 CHAR16 FunctionKeyToken
;
27 MENU_ITEM_FUNCTION Function
;
31 Initializa the menu bar with the specified items.
33 @param[in] Items The items to display and their functions.
35 @retval EFI_SUCCESS The initialization was correct.
36 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
41 IN CONST EDITOR_MENU_ITEM
*Items
45 Cleanup function for a menu bar. frees all allocated memory.
54 Refresh function for the menu bar.
56 @param[in] LastRow The last printable row.
57 @param[in] LastCol The last printable column.
59 @retval EFI_SUCCESS The refresh was successful.
64 IN CONST UINTN LastRow
,
65 IN CONST UINTN LastCol
69 Function to dispatch the correct function based on a function key (F1...)
71 @param[in] Key The pressed key.
73 @retval EFI_NOT_FOUND The key was not a valid function key
74 (an error was sent to the status bar).
75 @return The return value from the called dispatch function.
79 MenuBarDispatchFunctionKey (
80 IN CONST EFI_INPUT_KEY
*Key