mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
- Implemented disk label support - Implemented volume icon support - Separated PickerAttrbutes from ConsoleAttributes Co-authored-by: vit9696 <vit9696@users.noreply.github.com> Co-authored-by: Michael Belyaev <usrsse2@me.com>
65 lines
1.6 KiB
C
65 lines
1.6 KiB
C
/** @file
|
|
This file is part of OpenCanopy, OpenCore GUI.
|
|
|
|
Copyright (c) 2018-2019, Download-Fritz. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-3-Clause
|
|
**/
|
|
|
|
#ifndef GUI_APP_H
|
|
#define GUI_APP_H
|
|
|
|
#include "OpenCanopy.h"
|
|
#include "BmfLib.h"
|
|
|
|
#include <Library/OcBootManagementLib.h>
|
|
|
|
typedef struct {
|
|
GUI_CLICK_IMAGE EntrySelector;
|
|
GUI_IMAGE EntryIconInternal;
|
|
GUI_IMAGE EntryIconExternal;
|
|
GUI_IMAGE EntryIconTool;
|
|
GUI_IMAGE EntryLabelEFIBoot;
|
|
GUI_IMAGE EntryLabelWindows;
|
|
GUI_IMAGE EntryLabelRecovery;
|
|
GUI_IMAGE EntryLabelMacOS;
|
|
GUI_IMAGE EntryLabelTool;
|
|
GUI_IMAGE EntryLabelShell;
|
|
GUI_IMAGE EntryLabelResetNVRAM;
|
|
// GUI_IMAGE Poof[5];
|
|
GUI_IMAGE EntryBackSelected;
|
|
GUI_IMAGE Cursor;
|
|
GUI_FONT_CONTEXT FontContext;
|
|
VOID *BootEntry;
|
|
BOOLEAN HideAuxiliary;
|
|
BOOLEAN Refresh;
|
|
UINT8 Scale;
|
|
} BOOT_PICKER_GUI_CONTEXT;
|
|
|
|
RETURN_STATUS
|
|
BootPickerViewInitialize (
|
|
OUT GUI_DRAWING_CONTEXT *DrawContext,
|
|
IN BOOT_PICKER_GUI_CONTEXT *GuiContext,
|
|
IN GUI_CURSOR_GET_IMAGE GetCursorImage
|
|
);
|
|
|
|
RETURN_STATUS
|
|
BootPickerEntriesAdd (
|
|
IN OC_PICKER_CONTEXT *Context,
|
|
IN CONST BOOT_PICKER_GUI_CONTEXT *GuiContext,
|
|
IN OC_BOOT_ENTRY *Entry,
|
|
IN BOOLEAN Default
|
|
);
|
|
|
|
VOID
|
|
BootPickerEntriesEmpty (
|
|
VOID
|
|
);
|
|
|
|
CONST GUI_IMAGE *
|
|
InternalGetCursorImage (
|
|
IN OUT GUI_SCREEN_CURSOR *This,
|
|
IN VOID *Context
|
|
);
|
|
|
|
#endif // GUI_APP_H
|