OpenCore
1.0.4
OpenCore Bootloader
|
#include <Uefi.h>
#include <IndustryStandard/AppleIcon.h>
#include <Protocol/OcInterface.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcBootManagementLib.h>
#include <Library/OcStorageLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/PrintLib.h>
#include <Library/BaseLib.h>
#include <Guid/AppleVariable.h>
#include <Protocol/UserInterfaceTheme.h>
#include "OpenCanopy.h"
#include "BmfLib.h"
#include "GuiApp.h"
Go to the source code of this file.
Functions | |
STATIC VOID | InternalSafeFreePool (IN CONST VOID *Memory) |
STATIC VOID | InternalContextDestruct (IN OUT BOOT_PICKER_GUI_CONTEXT *Context) |
STATIC EFI_STATUS | LoadImageFileFromStorage (OUT GUI_IMAGE *Images, IN OC_STORAGE_CONTEXT *Storage, IN CONST CHAR8 *ImageFilePath, IN UINT8 Scale, IN UINT32 MatchWidth, IN UINT32 MatchHeight, IN BOOLEAN Icon, IN CONST CHAR8 *Prefix, IN BOOLEAN AllowLessSize) |
STATIC EFI_STATUS | LoadLabelFileFromStorageForScale (IN OC_STORAGE_CONTEXT *Storage, IN CONST CHAR8 *LabelFilePath, IN UINT8 Scale, OUT VOID **FileData, OUT UINT32 *FileSize) |
EFI_STATUS | LoadLabelFromStorage (IN OC_STORAGE_CONTEXT *Storage, IN CONST CHAR8 *ImageFilePath, IN UINT8 Scale, IN BOOLEAN Inverted, OUT GUI_IMAGE *Image) |
EFI_STATUS | InternalGetFlavourIcon (IN BOOT_PICKER_GUI_CONTEXT *GuiContext, IN OC_STORAGE_CONTEXT *Storage, IN CHAR8 *FlavourName, IN UINTN FlavourNameLen, IN UINT32 IconTypeIndex, IN BOOLEAN UseFlavourIcon, OUT GUI_IMAGE *EntryIcon, OUT BOOLEAN *CustomIcon) |
EFI_STATUS | InternalContextConstruct (OUT BOOT_PICKER_GUI_CONTEXT *Context, IN OC_STORAGE_CONTEXT *Storage, IN OC_PICKER_CONTEXT *Picker) |
CONST GUI_IMAGE * | InternalGetCursorImage (IN BOOT_PICKER_GUI_CONTEXT *Context) |
Variables | |
GLOBAL_REMOVE_IF_UNREFERENCED BOOT_PICKER_GUI_CONTEXT | mGuiContext |
STATIC EFI_GRAPHICS_OUTPUT_BLT_PIXEL | mHighlightPixel = { 0xAF, 0xAF, 0xAF, 0x32 } |
STATIC CONST CHAR8 * | mLabelNames [LABEL_NUM_TOTAL] |
STATIC CONST CHAR8 * | mIconNames [ICON_NUM_TOTAL] |
This file is part of OpenCanopy, OpenCore GUI.
Copyright (c) 2018-2019, Download-Fritz. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Definition in file GuiApp.c.
EFI_STATUS InternalContextConstruct | ( | OUT BOOT_PICKER_GUI_CONTEXT * | Context, |
IN OC_STORAGE_CONTEXT * | Storage, | ||
IN OC_PICKER_CONTEXT * | Picker ) |
STATIC VOID InternalContextDestruct | ( | IN OUT BOOT_PICKER_GUI_CONTEXT * | Context | ) |
CONST GUI_IMAGE * InternalGetCursorImage | ( | IN BOOT_PICKER_GUI_CONTEXT * | Context | ) |
EFI_STATUS InternalGetFlavourIcon | ( | IN BOOT_PICKER_GUI_CONTEXT * | GuiContext, |
IN OC_STORAGE_CONTEXT * | Storage, | ||
IN CHAR8 * | FlavourName, | ||
IN UINTN | FlavourNameLen, | ||
IN UINT32 | IconTypeIndex, | ||
IN BOOLEAN | UseFlavourIcon, | ||
OUT GUI_IMAGE * | EntryIcon, | ||
OUT BOOLEAN * | CustomIcon ) |
STATIC EFI_STATUS LoadImageFileFromStorage | ( | OUT GUI_IMAGE * | Images, |
IN OC_STORAGE_CONTEXT * | Storage, | ||
IN CONST CHAR8 * | ImageFilePath, | ||
IN UINT8 | Scale, | ||
IN UINT32 | MatchWidth, | ||
IN UINT32 | MatchHeight, | ||
IN BOOLEAN | Icon, | ||
IN CONST CHAR8 * | Prefix, | ||
IN BOOLEAN | AllowLessSize ) |
STATIC EFI_STATUS LoadLabelFileFromStorageForScale | ( | IN OC_STORAGE_CONTEXT * | Storage, |
IN CONST CHAR8 * | LabelFilePath, | ||
IN UINT8 | Scale, | ||
OUT VOID ** | FileData, | ||
OUT UINT32 * | FileSize ) |
EFI_STATUS LoadLabelFromStorage | ( | IN OC_STORAGE_CONTEXT * | Storage, |
IN CONST CHAR8 * | ImageFilePath, | ||
IN UINT8 | Scale, | ||
IN BOOLEAN | Inverted, | ||
OUT GUI_IMAGE * | Image ) |
GLOBAL_REMOVE_IF_UNREFERENCED BOOT_PICKER_GUI_CONTEXT mGuiContext |
STATIC EFI_GRAPHICS_OUTPUT_BLT_PIXEL mHighlightPixel = { 0xAF, 0xAF, 0xAF, 0x32 } |
STATIC CONST CHAR8* mIconNames[ICON_NUM_TOTAL] |
STATIC CONST CHAR8* mLabelNames[LABEL_NUM_TOTAL] |