TianoCore EDK2 master
Loading...
Searching...
No Matches
EmuFileSystem.h
Go to the documentation of this file.
1
16#ifndef _EMU_UGA_IO_H_
17#define _EMU_UGA_IO_H_
18
22#include <Protocol/UgaDraw.h>
23
24#define EMU_GRAPHICS_WINDOW_PROTOCOL_GUID \
25 { 0x30FD316A, 0x6728, 0x2E41, { 0xA6, 0x90, 0x0D, 0x13, 0x33, 0xD8, 0xCA, 0xC1 } }
26
28
29typedef
31(EFIAPI *EMU_GRAPHICS_WINDOWS_CLOSE)(
33 );
34
35typedef
37(EFIAPI *EMU_GRAPHICS_WINDOWS_SIZE)(
39 UINT32 Width,
40 UINT32 Height
41 );
42
43typedef
45(EFIAPI *EMU_GRAPHICS_WINDOWS_CHECK_KEY)(
47 );
48
49typedef
51(EFIAPI *EMU_GRAPHICS_WINDOWS_GET_KEY)(
53 EFI_KEY_DATA *key
54 );
55
56typedef
58(EFIAPI *EMU_GRAPHICS_WINDOWS_KEY_SET_STATE)(
59 IN EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsWindows,
60 IN EFI_KEY_TOGGLE_STATE *KeyToggleState
61 );
62
63typedef
64VOID
65(EFIAPI *EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK)(
66 IN VOID *Context,
67 IN EFI_KEY_DATA *KeyData
68 );
69
70typedef
72(EFIAPI *EMU_GRAPHICS_WINDOWS_REGISTER_KEY_NOTIFY)(
73 IN EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsWindows,
74 IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK CallBack,
75 IN VOID *Context
76 );
77
78typedef struct {
79 UINTN SourceX;
80 UINTN SourceY;
81 UINTN DestinationX;
82 UINTN DestinationY;
83 UINTN Width;
84 UINTN Height;
85 UINTN Delta;
87
88typedef
90(EFIAPI *EMU_GRAPHICS_WINDOWS_BLT)(
91 IN EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsWindows,
92 IN EFI_UGA_PIXEL *BltBuffer OPTIONAL,
93 IN EFI_UGA_BLT_OPERATION BltOperation,
95 );
96
97typedef
98BOOLEAN
99(EFIAPI *EMU_GRAPHICS_WINDOWS_IS_KEY_PRESSED)(
100 IN EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsWindows,
101 IN EFI_KEY_DATA *KeyData
102 );
103
104typedef
106(EFIAPI *EMU_GRAPHICS_WINDOWS_CHECK_POINTER)(
107 EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsWindows
108 );
109
110typedef
112(EFIAPI *EMU_GRAPHICS_WINDOWS_GET_POINTER_STATE)(
113 EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsWindows,
115 );
116
118 EMU_GRAPHICS_WINDOWS_SIZE Size;
119 EMU_GRAPHICS_WINDOWS_CHECK_KEY CheckKey;
120 EMU_GRAPHICS_WINDOWS_KEY_SET_STATE KeySetState;
121 EMU_GRAPHICS_WINDOWS_GET_KEY GetKey;
122 EMU_GRAPHICS_WINDOWS_REGISTER_KEY_NOTIFY RegisterKeyNotify;
123 EMU_GRAPHICS_WINDOWS_BLT Blt;
124 EMU_GRAPHICS_WINDOWS_IS_KEY_PRESSED IsKeyPressed;
125 EMU_GRAPHICS_WINDOWS_CHECK_POINTER CheckPointer;
126 EMU_GRAPHICS_WINDOWS_GET_POINTER_STATE GetPointerState;
127};
128
129extern EFI_GUID gEmuGraphicsWindowProtocolGuid;
130
131#endif
UINT64 UINTN
#define OPTIONAL
Definition: Base.h:290
#define IN
Definition: Base.h:279
UINT8 EFI_KEY_TOGGLE_STATE
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_UGA_BLT_OPERATION
Definition: UgaDraw.h:83
Definition: Base.h:213