OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
BootPicker.c File Reference
#include <Uefi.h>
#include <IndustryStandard/AppleIcon.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcBootManagementLib.h>
#include <Library/OcPngLib.h>
#include <Library/OcStorageLib.h>
#include <Library/OcMiscLib.h>
#include "../OpenCanopy.h"
#include "../BmfLib.h"
#include "../GuiApp.h"
#include "../GuiIo.h"
#include "BootPicker.h"
#include "Common.h"
#include "../Blending.h"

Go to the source code of this file.

Macros

#define BOOT_LABEL_WRAPAROUND_PADDING   30U
 
#define BOOT_LABEL_SCROLLING_HOLD_TIME   180U
 
#define BOOT_LABEL_SHADOW_WIDTH   8U
 
#define BOOT_LABEL_SHADOW_HEIGHT   BOOT_ENTRY_LABEL_HEIGHT
 

Functions

STATIC GUI_VOLUME_ENTRYInternalGetVolumeEntry (IN UINT32 Index)
 
STATIC VOID InternalRedrawVolumeLabel (IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN CONST GUI_VOLUME_ENTRY *Entry)
 
BOOLEAN InternalBootPickerAnimateLabel (IN BOOT_PICKER_GUI_CONTEXT *Context, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN UINT64 CurrentTime)
 
VOID InternalStartAnimateLabel (IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN CONST GUI_VOLUME_ENTRY *Entry)
 
VOID InternalStopAnimateLabel (IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN OUT GUI_VOLUME_ENTRY *Entry)
 
VOID InternalBootPickerSelectEntry (IN OUT GUI_VOLUME_PICKER *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN UINT32 NewIndex)
 
INT64 InternelBootPickerScrollSelected (VOID)
 
VOID InternalUpdateScrollButtons (VOID)
 
VOID InternalBootPickerScroll (IN OUT GUI_VOLUME_PICKER *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN INT64 BaseX, IN INT64 BaseY, IN INT64 ScrollOffset)
 
VOID InternalBootPickerChangeEntry (IN OUT GUI_VOLUME_PICKER *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN INT64 BaseX, IN INT64 BaseY, IN UINT32 NewIndex)
 
VOID InternalBootPickerKeyEvent (IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *GuiContext, IN CONST GUI_KEY_EVENT *KeyEvent)
 
STATIC VOID InternalBootPickerEntryDraw (IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN UINT32 OffsetX, IN UINT32 OffsetY, IN UINT32 Width, IN UINT32 Height, IN UINT8 Opacity)
 
STATIC GUI_OBJInternalBootPickerEntryPtrEvent (IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN CONST GUI_PTR_EVENT *Event)
 
VOID InternalBootPickerSelectorBackgroundDraw (IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN UINT32 OffsetX, IN UINT32 OffsetY, IN UINT32 Width, IN UINT32 Height, IN UINT8 Opacity)
 
GUI_OBJInternalBootPickerSelectorPtrEvent (IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN CONST GUI_PTR_EVENT *Event)
 
GUI_OBJInternalBootPickerLeftScrollPtrEvent (IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN CONST GUI_PTR_EVENT *Event)
 
GUI_OBJInternalBootPickerRightScrollPtrEvent (IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN CONST GUI_PTR_EVENT *Event)
 
VOID InternalVersionLabelDraw (IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN UINT32 OffsetX, IN UINT32 OffsetY, IN UINT32 Width, IN UINT32 Height, IN UINT8 Opacity)
 
VOID InternalBootPickerViewKeyEvent (IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN CONST GUI_KEY_EVENT *KeyEvent)
 
VOID InternalBootPickerFocus (IN CONST GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOLEAN Focus)
 
BOOLEAN InternalBootPickerExitLoop (IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context)
 
STATIC EFI_STATUS CopyLabel (OUT GUI_IMAGE *Destination, IN CONST GUI_IMAGE *Source)
 
EFI_STATUS BootPickerEntriesSet (IN OC_PICKER_CONTEXT *Context, IN BOOT_PICKER_GUI_CONTEXT *GuiContext, IN OC_BOOT_ENTRY *Entry, IN UINT8 EntryIndex)
 
VOID InternalBootPickerEntryDestruct (IN GUI_VOLUME_ENTRY *Entry)
 
VOID InitBpAnimImageList (IN GUI_INTERPOL_TYPE Type, IN UINT64 StartTime, IN UINT64 Duration)
 
BOOLEAN InternalBootPickerAnimateImageList (IN BOOT_PICKER_GUI_CONTEXT *Context, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN UINT64 CurrentTime)
 
VOID InitBpAnimIntro (IN CONST GUI_DRAWING_CONTEXT *DrawContext)
 
BOOLEAN InternalBootPickerAnimateIntro (IN BOOT_PICKER_GUI_CONTEXT *Context, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN UINT64 CurrentTime)
 
BOOLEAN InternalBootPickerAnimateTimeout (IN BOOT_PICKER_GUI_CONTEXT *Context, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN UINT64 CurrentTime)
 
EFI_STATUS BootPickerViewInitialize (OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *GuiContext, IN GUI_CURSOR_GET_IMAGE GetCursorImage, IN UINT8 NumBootEntries)
 
VOID BootPickerViewLateInitialize (IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *GuiContext, IN UINT8 DefaultIndex)
 
VOID BootPickerViewDeinitialize (IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN OUT BOOT_PICKER_GUI_CONTEXT *GuiContext)
 

Variables

GUI_KEY_CONTEXTmKeyContext
 
GUI_VOLUME_PICKER mBootPicker
 
GUI_OBJ_CHILD mBootPickerContainer
 
GUI_OBJ_CHILD mBootPickerSelectorContainer
 
GUI_OBJ_CHILD mBootPickerSelectorBackground
 
GUI_OBJ_CLICKABLE mBootPickerSelectorButton
 
GUI_OBJ_CLICKABLE mBootPickerRightScroll
 
GUI_OBJ_CLICKABLE mBootPickerLeftScroll
 
CONST GUI_IMAGE mBackgroundImage
 
INT64 mBackgroundImageOffsetX
 
INT64 mBackgroundImageOffsetY
 
STATIC UINT32 mBootPickerLabelScrollHoldTime = 0
 
STATIC GUI_OBJmBootPickerFocusList []
 
STATIC GUI_OBJmBootPickerFocusListReversed []
 
STATIC GUI_OBJmBootPickerFocusListMinimal []
 
STATIC GUI_ANIMATION mBootPickerLabelAnimation
 
STATIC GUI_IMAGE mVersionLabelImage
 
STATIC GUI_OBJ_CHILDmBootPickerSelectorContainerChildren []
 
STATIC GUI_OBJ_CHILDmBootPickerContainerChildren []
 
GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CHILD mBootPickerVersionLabel
 
STATIC GUI_OBJ_CHILDmBootPickerViewChildren []
 
STATIC GUI_OBJ_CHILDmBootPickerViewChildrenMinimal []
 
GLOBAL_REMOVE_IF_UNREFERENCED GUI_VIEW_CONTEXT mBootPickerViewContext
 
GLOBAL_REMOVE_IF_UNREFERENCED GUI_VIEW_CONTEXT mBootPickerViewContextReversed
 
GLOBAL_REMOVE_IF_UNREFERENCED GUI_VIEW_CONTEXT mBootPickerViewContextMinimal
 
STATIC GUI_INTERPOLATION mBpAnimInfoImageList
 
STATIC UINT32 mPrevSine
 
STATIC GUI_INTERPOLATION mBpAnimInfoSinMove
 
STATIC GUI_INTERPOLATION mBootPickerTimeoutOpacityInterpolDown
 
STATIC GUI_INTERPOLATION mBootPickerTimeoutOpacityInterpolUp
 
STATIC GUI_ANIMATION mBootPickerIntroAnimation
 

Detailed Description

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 BootPicker.c.

Macro Definition Documentation

◆ BOOT_LABEL_SCROLLING_HOLD_TIME

#define BOOT_LABEL_SCROLLING_HOLD_TIME   180U

Definition at line 34 of file BootPicker.c.

◆ BOOT_LABEL_SHADOW_HEIGHT

#define BOOT_LABEL_SHADOW_HEIGHT   BOOT_ENTRY_LABEL_HEIGHT

Definition at line 37 of file BootPicker.c.

◆ BOOT_LABEL_SHADOW_WIDTH

#define BOOT_LABEL_SHADOW_WIDTH   8U

Definition at line 36 of file BootPicker.c.

◆ BOOT_LABEL_WRAPAROUND_PADDING

#define BOOT_LABEL_WRAPAROUND_PADDING   30U

Definition at line 33 of file BootPicker.c.

Function Documentation

◆ BootPickerEntriesSet()

EFI_STATUS BootPickerEntriesSet ( IN OC_PICKER_CONTEXT * Context,
IN BOOT_PICKER_GUI_CONTEXT * GuiContext,
IN OC_BOOT_ENTRY * Entry,
IN UINT8 EntryIndex )

Definition at line 1394 of file BootPicker.c.

◆ BootPickerViewDeinitialize()

VOID BootPickerViewDeinitialize ( IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN OUT BOOT_PICKER_GUI_CONTEXT * GuiContext )

Definition at line 2132 of file BootPicker.c.

◆ BootPickerViewInitialize()

EFI_STATUS BootPickerViewInitialize ( OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * GuiContext,
IN GUI_CURSOR_GET_IMAGE GetCursorImage,
IN UINT8 NumBootEntries )

Definition at line 1896 of file BootPicker.c.

◆ BootPickerViewLateInitialize()

VOID BootPickerViewLateInitialize ( IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * GuiContext,
IN UINT8 DefaultIndex )

Definition at line 2096 of file BootPicker.c.

◆ CopyLabel()

STATIC EFI_STATUS CopyLabel ( OUT GUI_IMAGE * Destination,
IN CONST GUI_IMAGE * Source )

Definition at line 1369 of file BootPicker.c.

◆ InitBpAnimImageList()

VOID InitBpAnimImageList ( IN GUI_INTERPOL_TYPE Type,
IN UINT64 StartTime,
IN UINT64 Duration )

Definition at line 1684 of file BootPicker.c.

◆ InitBpAnimIntro()

VOID InitBpAnimIntro ( IN CONST GUI_DRAWING_CONTEXT * DrawContext)

Definition at line 1741 of file BootPicker.c.

◆ InternalBootPickerAnimateImageList()

BOOLEAN InternalBootPickerAnimateImageList ( IN BOOT_PICKER_GUI_CONTEXT * Context,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN UINT64 CurrentTime )

Definition at line 1698 of file BootPicker.c.

◆ InternalBootPickerAnimateIntro()

BOOLEAN InternalBootPickerAnimateIntro ( IN BOOT_PICKER_GUI_CONTEXT * Context,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN UINT64 CurrentTime )

Definition at line 1756 of file BootPicker.c.

◆ InternalBootPickerAnimateLabel()

BOOLEAN InternalBootPickerAnimateLabel ( IN BOOT_PICKER_GUI_CONTEXT * Context,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN UINT64 CurrentTime )

Definition at line 102 of file BootPicker.c.

◆ InternalBootPickerAnimateTimeout()

BOOLEAN InternalBootPickerAnimateTimeout ( IN BOOT_PICKER_GUI_CONTEXT * Context,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN UINT64 CurrentTime )

Definition at line 1844 of file BootPicker.c.

◆ InternalBootPickerChangeEntry()

VOID InternalBootPickerChangeEntry ( IN OUT GUI_VOLUME_PICKER * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN INT64 BaseX,
IN INT64 BaseY,
IN UINT32 NewIndex )

Definition at line 336 of file BootPicker.c.

◆ InternalBootPickerEntryDestruct()

VOID InternalBootPickerEntryDestruct ( IN GUI_VOLUME_ENTRY * Entry)

Definition at line 1666 of file BootPicker.c.

◆ InternalBootPickerEntryDraw()

STATIC VOID InternalBootPickerEntryDraw ( IN OUT GUI_OBJ * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * Context,
IN INT64 BaseX,
IN INT64 BaseY,
IN UINT32 OffsetX,
IN UINT32 OffsetY,
IN UINT32 Width,
IN UINT32 Height,
IN UINT8 Opacity )

Definition at line 508 of file BootPicker.c.

◆ InternalBootPickerEntryPtrEvent()

STATIC GUI_OBJ * InternalBootPickerEntryPtrEvent ( IN OUT GUI_OBJ * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * Context,
IN INT64 BaseX,
IN INT64 BaseY,
IN CONST GUI_PTR_EVENT * Event )

Definition at line 750 of file BootPicker.c.

◆ InternalBootPickerExitLoop()

BOOLEAN InternalBootPickerExitLoop ( IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * Context )

Definition at line 1173 of file BootPicker.c.

◆ InternalBootPickerFocus()

VOID InternalBootPickerFocus ( IN CONST GUI_OBJ * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOLEAN Focus )

Definition at line 1149 of file BootPicker.c.

◆ InternalBootPickerKeyEvent()

VOID InternalBootPickerKeyEvent ( IN OUT GUI_OBJ * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * GuiContext,
IN CONST GUI_KEY_EVENT * KeyEvent )

Definition at line 388 of file BootPicker.c.

◆ InternalBootPickerLeftScrollPtrEvent()

GUI_OBJ * InternalBootPickerLeftScrollPtrEvent ( IN OUT GUI_OBJ * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * Context,
IN INT64 BaseX,
IN INT64 BaseY,
IN CONST GUI_PTR_EVENT * Event )

Definition at line 897 of file BootPicker.c.

◆ InternalBootPickerRightScrollPtrEvent()

GUI_OBJ * InternalBootPickerRightScrollPtrEvent ( IN OUT GUI_OBJ * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * Context,
IN INT64 BaseX,
IN INT64 BaseY,
IN CONST GUI_PTR_EVENT * Event )

Definition at line 988 of file BootPicker.c.

◆ InternalBootPickerScroll()

VOID InternalBootPickerScroll ( IN OUT GUI_VOLUME_PICKER * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN INT64 BaseX,
IN INT64 BaseY,
IN INT64 ScrollOffset )

Definition at line 284 of file BootPicker.c.

◆ InternalBootPickerSelectEntry()

VOID InternalBootPickerSelectEntry ( IN OUT GUI_VOLUME_PICKER * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN UINT32 NewIndex )

Definition at line 192 of file BootPicker.c.

◆ InternalBootPickerSelectorBackgroundDraw()

VOID InternalBootPickerSelectorBackgroundDraw ( IN OUT GUI_OBJ * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * Context,
IN INT64 BaseX,
IN INT64 BaseY,
IN UINT32 OffsetX,
IN UINT32 OffsetY,
IN UINT32 Width,
IN UINT32 Height,
IN UINT8 Opacity )

Definition at line 812 of file BootPicker.c.

◆ InternalBootPickerSelectorPtrEvent()

GUI_OBJ * InternalBootPickerSelectorPtrEvent ( IN OUT GUI_OBJ * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * Context,
IN INT64 BaseX,
IN INT64 BaseY,
IN CONST GUI_PTR_EVENT * Event )

Definition at line 854 of file BootPicker.c.

◆ InternalBootPickerViewKeyEvent()

VOID InternalBootPickerViewKeyEvent ( IN OUT GUI_OBJ * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * Context,
IN CONST GUI_KEY_EVENT * KeyEvent )

Definition at line 1110 of file BootPicker.c.

◆ InternalGetVolumeEntry()

STATIC GUI_VOLUME_ENTRY * InternalGetVolumeEntry ( IN UINT32 Index)

Definition at line 75 of file BootPicker.c.

◆ InternalRedrawVolumeLabel()

STATIC VOID InternalRedrawVolumeLabel ( IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN CONST GUI_VOLUME_ENTRY * Entry )

Definition at line 87 of file BootPicker.c.

◆ InternalStartAnimateLabel()

VOID InternalStartAnimateLabel ( IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN CONST GUI_VOLUME_ENTRY * Entry )

Definition at line 151 of file BootPicker.c.

◆ InternalStopAnimateLabel()

VOID InternalStopAnimateLabel ( IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN OUT GUI_VOLUME_ENTRY * Entry )

Definition at line 171 of file BootPicker.c.

◆ InternalUpdateScrollButtons()

VOID InternalUpdateScrollButtons ( VOID )

Definition at line 266 of file BootPicker.c.

◆ InternalVersionLabelDraw()

VOID InternalVersionLabelDraw ( IN OUT GUI_OBJ * This,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * Context,
IN INT64 BaseX,
IN INT64 BaseY,
IN UINT32 OffsetX,
IN UINT32 OffsetY,
IN UINT32 Width,
IN UINT32 Height,
IN UINT8 Opacity )

Definition at line 1081 of file BootPicker.c.

◆ InternelBootPickerScrollSelected()

INT64 InternelBootPickerScrollSelected ( VOID )

Definition at line 230 of file BootPicker.c.

Variable Documentation

◆ mBackgroundImage

CONST GUI_IMAGE mBackgroundImage
extern

◆ mBackgroundImageOffsetX

INT64 mBackgroundImageOffsetX
extern

Definition at line 19 of file Common.c.

◆ mBackgroundImageOffsetY

INT64 mBackgroundImageOffsetY
extern

Definition at line 20 of file Common.c.

◆ mBootPicker

GLOBAL_REMOVE_IF_UNREFERENCED GUI_VOLUME_PICKER mBootPicker
Initial value:
= {
{
{
0, 0, 0, 0, 0xFF,
0,
NULL
},
},
1
}
VOID InternalBootPickerFocus(IN CONST GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOLEAN Focus)
VOID InternalBootPickerKeyEvent(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *GuiContext, IN CONST GUI_KEY_EVENT *KeyEvent)
Definition BootPicker.c:388
GUI_OBJ_CHILD mBootPickerContainer
GUI_OBJ * GuiObjDelegatePtrEvent(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN CONST GUI_PTR_EVENT *Event)
Definition OpenCanopy.c:226
VOID GuiObjDrawDelegate(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN UINT32 OffsetX, IN UINT32 OffsetY, IN UINT32 Width, IN UINT32 Height, IN UINT8 Opacity)
Definition OpenCanopy.c:137

Definition at line 1253 of file BootPicker.c.

◆ mBootPickerContainer

GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CHILD mBootPickerContainer
Initial value:
= {
{
0, 0, 0, 0, 0xFF,
NULL,
NULL,
},
NULL
}
#define ARRAY_SIZE(Array)
Definition AppleMacEfi.h:34
STATIC GUI_OBJ_CHILD * mBootPickerContainerChildren[]

Definition at line 1240 of file BootPicker.c.

◆ mBootPickerContainerChildren

STATIC GUI_OBJ_CHILD* mBootPickerContainerChildren[]
Initial value:
= {
}
GUI_VOLUME_PICKER mBootPicker
GUI_OBJ_CHILD mBootPickerSelectorContainer
GUI_OBJ_CHILD Hdr
Definition BootPicker.h:25

Definition at line 1235 of file BootPicker.c.

◆ mBootPickerFocusList

STATIC GUI_OBJ* mBootPickerFocusList[]
Initial value:
= {
}
GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CLICKABLE mCommonShutDown
Definition Common.c:626
GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CLICKABLE mCommonRestart
Definition Common.c:609
GUI_OBJ_CHILD Hdr
Definition Common.h:7

Definition at line 57 of file BootPicker.c.

◆ mBootPickerFocusListMinimal

STATIC GUI_OBJ* mBootPickerFocusListMinimal[]
Initial value:

Definition at line 69 of file BootPicker.c.

◆ mBootPickerFocusListReversed

STATIC GUI_OBJ* mBootPickerFocusListReversed[]
Initial value:

Definition at line 63 of file BootPicker.c.

◆ mBootPickerIntroAnimation

STATIC GUI_ANIMATION mBootPickerIntroAnimation
Initial value:
= {
{ NULL, NULL },
NULL,
}
BOOLEAN InternalBootPickerAnimateIntro(IN BOOT_PICKER_GUI_CONTEXT *Context, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN UINT64 CurrentTime)

Definition at line 1889 of file BootPicker.c.

◆ mBootPickerLabelAnimation

STATIC GUI_ANIMATION mBootPickerLabelAnimation
Initial value:
= {
{ NULL, NULL },
NULL,
}
BOOLEAN InternalBootPickerAnimateLabel(IN BOOT_PICKER_GUI_CONTEXT *Context, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN UINT64 CurrentTime)
Definition BootPicker.c:102

Definition at line 144 of file BootPicker.c.

◆ mBootPickerLabelScrollHoldTime

STATIC UINT32 mBootPickerLabelScrollHoldTime = 0

Definition at line 55 of file BootPicker.c.

◆ mBootPickerLeftScroll

GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CLICKABLE mBootPickerLeftScroll
Initial value:
= {
{
{
0, 0, 0, 0, 0xFF,
NULL,
NULL,
0,
NULL
},
NULL
},
0,
0
}
GUI_OBJ * InternalBootPickerLeftScrollPtrEvent(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN CONST GUI_PTR_EVENT *Event)
Definition BootPicker.c:897
VOID InternalCommonSimpleButtonDraw(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN UINT32 OffsetX, IN UINT32 OffsetY, IN UINT32 Width, IN UINT32 Height, IN UINT8 Opacity)
Definition Common.c:263

Definition at line 1269 of file BootPicker.c.

◆ mBootPickerRightScroll

GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CLICKABLE mBootPickerRightScroll
Initial value:
= {
{
{
0, 0, 0, 0, 0xFF,
NULL,
NULL,
0,
NULL
},
NULL
},
0,
0
}
GUI_OBJ * InternalBootPickerRightScrollPtrEvent(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN CONST GUI_PTR_EVENT *Event)
Definition BootPicker.c:988

Definition at line 1286 of file BootPicker.c.

◆ mBootPickerSelectorBackground

GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CHILD mBootPickerSelectorBackground
Initial value:
= {
{
0, 0, 0, 0, 0xFF,
NULL,
NULL,
0,
NULL
},
}
VOID InternalBootPickerSelectorBackgroundDraw(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN UINT32 OffsetX, IN UINT32 OffsetY, IN UINT32 Width, IN UINT32 Height, IN UINT8 Opacity)
Definition BootPicker.c:812

Definition at line 1187 of file BootPicker.c.

◆ mBootPickerSelectorButton

GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CLICKABLE mBootPickerSelectorButton
Initial value:
= {
{
{
0, 0, 0, 0, 0xFF,
NULL,
NULL,
0,
NULL
},
},
0,
0
}
GUI_OBJ * InternalBootPickerSelectorPtrEvent(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN CONST GUI_PTR_EVENT *Event)
Definition BootPicker.c:854

Definition at line 1200 of file BootPicker.c.

◆ mBootPickerSelectorContainer

GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CHILD mBootPickerSelectorContainer
Initial value:

Definition at line 1222 of file BootPicker.c.

◆ mBootPickerSelectorContainerChildren

STATIC GUI_OBJ_CHILD* mBootPickerSelectorContainerChildren[]
Initial value:
= {
}
GUI_OBJ_CLICKABLE mBootPickerSelectorButton
GUI_OBJ_CHILD mBootPickerSelectorBackground

Definition at line 1217 of file BootPicker.c.

◆ mBootPickerTimeoutOpacityInterpolDown

STATIC GUI_INTERPOLATION mBootPickerTimeoutOpacityInterpolDown
Initial value:
= {
0,
125,
0xFF,
0x50,
0
}
@ GuiInterpolTypeLinear
Definition OpenCanopy.h:348

Definition at line 1825 of file BootPicker.c.

◆ mBootPickerTimeoutOpacityInterpolUp

STATIC GUI_INTERPOLATION mBootPickerTimeoutOpacityInterpolUp
Initial value:
= {
0,
125,
0x50,
0xFF,
20
}

Definition at line 1834 of file BootPicker.c.

◆ mBootPickerVersionLabel

GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CHILD mBootPickerVersionLabel
Initial value:
= {
{
0, 0, 0, 0, 0xFF,
NULL,
NULL,
0,
NULL
},
NULL
}
VOID InternalVersionLabelDraw(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN UINT32 OffsetX, IN UINT32 OffsetY, IN UINT32 Width, IN UINT32 Height, IN UINT8 Opacity)

Definition at line 1303 of file BootPicker.c.

◆ mBootPickerViewChildren

STATIC GUI_OBJ_CHILD* mBootPickerViewChildren[]
Initial value:
= {
}
GUI_OBJ_CLICKABLE mBootPickerLeftScroll
GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CHILD mBootPickerVersionLabel
GUI_OBJ_CLICKABLE mBootPickerRightScroll
GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CHILD mCommonActionButtonsContainer
Definition Common.c:643

Definition at line 1316 of file BootPicker.c.

◆ mBootPickerViewChildrenMinimal

STATIC GUI_OBJ_CHILD* mBootPickerViewChildrenMinimal[]

◆ mBootPickerViewContext

GLOBAL_REMOVE_IF_UNREFERENCED GUI_VIEW_CONTEXT mBootPickerViewContext
Initial value:
= {
}
BOOLEAN InternalBootPickerExitLoop(IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context)
VOID InternalBootPickerViewKeyEvent(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN CONST GUI_KEY_EVENT *KeyEvent)
STATIC GUI_OBJ_CHILD * mBootPickerViewChildren[]
STATIC GUI_OBJ * mBootPickerFocusList[]
Definition BootPicker.c:57
GUI_OBJ * InternalCommonViewPtrEvent(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN CONST GUI_PTR_EVENT *Event)
Definition Common.c:249
VOID InternalCommonViewDraw(IN OUT GUI_OBJ *This, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN INT64 BaseX, IN INT64 BaseY, IN UINT32 OffsetX, IN UINT32 OffsetY, IN UINT32 Width, IN UINT32 Height, IN UINT8 Opacity)
Definition Common.c:189
CONST GUI_IMAGE * InternalGetCursorImage(IN BOOT_PICKER_GUI_CONTEXT *Context)
Definition GuiApp.c:663

Definition at line 1331 of file BootPicker.c.

◆ mBootPickerViewContextMinimal

GLOBAL_REMOVE_IF_UNREFERENCED GUI_VIEW_CONTEXT mBootPickerViewContextMinimal

◆ mBootPickerViewContextReversed

GLOBAL_REMOVE_IF_UNREFERENCED GUI_VIEW_CONTEXT mBootPickerViewContextReversed

◆ mBpAnimInfoImageList

STATIC GUI_INTERPOLATION mBpAnimInfoImageList

Definition at line 1681 of file BootPicker.c.

◆ mBpAnimInfoSinMove

STATIC GUI_INTERPOLATION mBpAnimInfoSinMove
Initial value:
= {
0,
25,
0,
0,
0
}
@ GuiInterpolTypeSmooth
Definition OpenCanopy.h:349

Definition at line 1731 of file BootPicker.c.

◆ mKeyContext

GUI_KEY_CONTEXT* mKeyContext
extern

Definition at line 45 of file OpenCanopy.c.

◆ mPrevSine

STATIC UINT32 mPrevSine

Definition at line 1729 of file BootPicker.c.

◆ mVersionLabelImage

STATIC GUI_IMAGE mVersionLabelImage

Definition at line 1078 of file BootPicker.c.