TianoCore EDK2 master
Loading...
Searching...
No Matches
HiiImage.h
Go to the documentation of this file.
1
12#ifndef __HII_IMAGE_H__
13#define __HII_IMAGE_H__
14
16
17#define EFI_HII_IMAGE_PROTOCOL_GUID \
18 { 0x31a6406a, 0x6bdf, 0x4e46, { 0xb2, 0xa2, 0xeb, 0xaa, 0x89, 0xc4, 0x9, 0x20 } }
19
21
25#define EFI_IMAGE_TRANSPARENT 0x00000001
26
45typedef struct _EFI_IMAGE_INPUT {
46 UINT32 Flags;
47 UINT16 Width;
48 UINT16 Height;
51
77typedef
79(EFIAPI *EFI_HII_NEW_IMAGE)(
81 IN EFI_HII_HANDLE PackageList,
82 OUT EFI_IMAGE_ID *ImageId,
84 );
85
119typedef
121(EFIAPI *EFI_HII_GET_IMAGE)(
123 IN EFI_HII_HANDLE PackageList,
124 IN EFI_IMAGE_ID ImageId,
125 OUT EFI_IMAGE_INPUT *Image
126 );
127
150typedef
152(EFIAPI *EFI_HII_SET_IMAGE)(
154 IN EFI_HII_HANDLE PackageList,
155 IN EFI_IMAGE_ID ImageId,
157 );
158
163typedef UINT32 EFI_HII_DRAW_FLAGS;
164
165#define EFI_HII_DRAW_FLAG_CLIP 0x00000001
166#define EFI_HII_DRAW_FLAG_TRANSPARENT 0x00000030
167#define EFI_HII_DRAW_FLAG_DEFAULT 0x00000000
168#define EFI_HII_DRAW_FLAG_FORCE_TRANS 0x00000010
169#define EFI_HII_DRAW_FLAG_FORCE_OPAQUE 0x00000020
170#define EFI_HII_DIRECT_TO_SCREEN 0x00000080
171
187typedef struct _EFI_IMAGE_OUTPUT {
188 UINT16 Width;
189 UINT16 Height;
190 union {
193 } Image;
195
243typedef
245(EFIAPI *EFI_HII_DRAW_IMAGE)(
248 IN CONST EFI_IMAGE_INPUT *Image,
249 IN OUT EFI_IMAGE_OUTPUT **Blt,
250 IN UINTN BltX,
251 IN UINTN BltY
252 );
253
321typedef
323(EFIAPI *EFI_HII_DRAW_IMAGE_ID)(
326 IN EFI_HII_HANDLE PackageList,
327 IN EFI_IMAGE_ID ImageId,
328 IN OUT EFI_IMAGE_OUTPUT **Blt,
329 IN UINTN BltX,
330 IN UINTN BltY
331 );
332
337 EFI_HII_NEW_IMAGE NewImage;
338 EFI_HII_GET_IMAGE GetImage;
339 EFI_HII_SET_IMAGE SetImage;
340 EFI_HII_DRAW_IMAGE DrawImage;
341 EFI_HII_DRAW_IMAGE_ID DrawImageId;
342};
343
344extern EFI_GUID gEfiHiiImageProtocolGuid;
345
346#endif
UINT64 UINTN
EFI_STATUS(EFIAPI * EFI_HII_NEW_IMAGE)(IN CONST EFI_HII_IMAGE_PROTOCOL *This, IN EFI_HII_HANDLE PackageList, OUT EFI_IMAGE_ID *ImageId, IN CONST EFI_IMAGE_INPUT *Image)
Definition: HiiImage.h:79
UINT32 EFI_HII_DRAW_FLAGS
Definition: HiiImage.h:163
EFI_STATUS(EFIAPI * EFI_HII_SET_IMAGE)(IN CONST EFI_HII_IMAGE_PROTOCOL *This, IN EFI_HII_HANDLE PackageList, IN EFI_IMAGE_ID ImageId, IN CONST EFI_IMAGE_INPUT *Image)
Definition: HiiImage.h:152
EFI_STATUS(EFIAPI * EFI_HII_DRAW_IMAGE)(IN CONST EFI_HII_IMAGE_PROTOCOL *This, IN EFI_HII_DRAW_FLAGS Flags, IN CONST EFI_IMAGE_INPUT *Image, IN OUT EFI_IMAGE_OUTPUT **Blt, IN UINTN BltX, IN UINTN BltY)
Definition: HiiImage.h:245
struct _EFI_IMAGE_INPUT EFI_IMAGE_INPUT
struct _EFI_IMAGE_OUTPUT EFI_IMAGE_OUTPUT
EFI_STATUS(EFIAPI * EFI_HII_DRAW_IMAGE_ID)(IN CONST EFI_HII_IMAGE_PROTOCOL *This, IN EFI_HII_DRAW_FLAGS Flags, IN EFI_HII_HANDLE PackageList, IN EFI_IMAGE_ID ImageId, IN OUT EFI_IMAGE_OUTPUT **Blt, IN UINTN BltX, IN UINTN BltY)
Definition: HiiImage.h:323
EFI_STATUS(EFIAPI * EFI_HII_GET_IMAGE)(IN CONST EFI_HII_IMAGE_PROTOCOL *This, IN EFI_HII_HANDLE PackageList, IN EFI_IMAGE_ID ImageId, OUT EFI_IMAGE_INPUT *Image)
Definition: HiiImage.h:121
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HII_HANDLE
Definition: Base.h:213