OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
Common.h File Reference
#include "../GuiApp.h"

Go to the source code of this file.

Data Structures

struct  GUI_OBJ_CLICKABLE
 

Enumerations

enum  COMMON_PTR_EVENT_RESULT { CommonPtrNotHit = 0 , CommonPtrAction = 1 , CommonPtrHit = 2 }
 

Functions

VOID GuiDrawChildImage (IN CONST GUI_IMAGE *Image, IN UINT8 Opacity, IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN INT64 ParentBaseX, IN INT64 ParentBaseY, IN INT64 ChildBaseX, IN INT64 ChildBaseY, IN UINT32 OffsetX, IN UINT32 OffsetY, IN UINT32 Width, IN UINT32 Height)
 
BOOLEAN GuiClickableIsHit (IN CONST GUI_IMAGE *Image, IN INT64 OffsetX, IN INT64 OffsetY)
 
GUI_OBJInternalFocusKeyHandler (IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *Context, IN CONST GUI_KEY_EVENT *KeyEvent)
 
VOID CommonViewInitialize (IN OUT GUI_DRAWING_CONTEXT *DrawContext, IN BOOT_PICKER_GUI_CONTEXT *GuiContext, IN CONST GUI_VIEW_CONTEXT *ViewContext)
 
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)
 
GUI_OBJInternalCommonViewPtrEvent (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 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)
 
UINT8 InternalCommonSimpleButtonPtrEvent (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)
 

Variables

GUI_OBJ_CHILD mCommonActionButtonsContainer
 
GUI_OBJ_CLICKABLE mCommonRestart
 
GUI_OBJ_CLICKABLE mCommonShutDown
 
GUI_INTERPOLATION mCommonIntroOpacityInterpol
 

Enumeration Type Documentation

◆ COMMON_PTR_EVENT_RESULT

Enumerator
CommonPtrNotHit 
CommonPtrAction 
CommonPtrHit 

Definition at line 86 of file Common.h.

Function Documentation

◆ CommonViewInitialize()

VOID CommonViewInitialize ( IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * GuiContext,
IN CONST GUI_VIEW_CONTEXT * ViewContext )

Definition at line 657 of file Common.c.

◆ GuiClickableIsHit()

BOOLEAN GuiClickableIsHit ( IN CONST GUI_IMAGE * Image,
IN INT64 OffsetX,
IN INT64 OffsetY )

Definition at line 90 of file Common.c.

◆ GuiDrawChildImage()

VOID GuiDrawChildImage ( IN CONST GUI_IMAGE * Image,
IN UINT8 Opacity,
IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN INT64 ParentBaseX,
IN INT64 ParentBaseY,
IN INT64 ChildBaseX,
IN INT64 ChildBaseY,
IN UINT32 OffsetX,
IN UINT32 OffsetY,
IN UINT32 Width,
IN UINT32 Height )

Definition at line 37 of file Common.c.

◆ InternalCommonSimpleButtonDraw()

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 at line 263 of file Common.c.

◆ InternalCommonSimpleButtonPtrEvent()

UINT8 InternalCommonSimpleButtonPtrEvent ( 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 309 of file Common.c.

◆ InternalCommonViewDraw()

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 at line 189 of file Common.c.

◆ InternalCommonViewPtrEvent()

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 at line 249 of file Common.c.

◆ InternalFocusKeyHandler()

GUI_OBJ * InternalFocusKeyHandler ( IN OUT GUI_DRAWING_CONTEXT * DrawContext,
IN BOOT_PICKER_GUI_CONTEXT * Context,
IN CONST GUI_KEY_EVENT * KeyEvent )

Definition at line 109 of file Common.c.

Variable Documentation

◆ mCommonActionButtonsContainer

GUI_OBJ_CHILD mCommonActionButtonsContainer
extern

Definition at line 643 of file Common.c.

◆ mCommonIntroOpacityInterpol

GUI_INTERPOLATION mCommonIntroOpacityInterpol
extern

Definition at line 22 of file Common.c.

◆ mCommonRestart

GUI_OBJ_CLICKABLE mCommonRestart
extern

Definition at line 609 of file Common.c.

◆ mCommonShutDown

GUI_OBJ_CLICKABLE mCommonShutDown
extern

Definition at line 626 of file Common.c.