]>
Commit | Line | Data |
---|---|---|
8dfe7fd2 RN |
1 | /** @file\r |
2 | This library is only intended to be used by PlatformBootManagerLib\r | |
3 | to show progress bar and LOGO.\r | |
4 | \r | |
5 | Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r | |
6 | This program and the accompanying materials are licensed and made available under\r | |
7 | the terms and conditions of the BSD License that accompanies this distribution.\r | |
8 | The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php.\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef _BOOT_LOGO_LIB_H_\r | |
17 | #define _BOOT_LOGO_LIB_H_\r | |
18 | \r | |
19 | #include <Protocol/PlatformLogo.h>\r | |
20 | \r | |
21 | /**\r | |
22 | Show LOGO on all consoles.\r | |
23 | \r | |
24 | @param[in] ImageFormat Format of the image file.\r | |
25 | @param[in] LogoFile The file name of logo to display.\r | |
26 | @param[in] Attribute The display attributes of the image returned.\r | |
b9335cf5 RN |
27 | @param[in] OffsetX The X offset of the image regarding the Attribute.\r |
28 | @param[in] OffsetY The Y offset of the image regarding the Attribute.\r | |
8dfe7fd2 RN |
29 | \r |
30 | @retval EFI_SUCCESS Logo was displayed.\r | |
31 | @retval EFI_UNSUPPORTED Logo was not found or cannot be displayed.\r | |
32 | **/\r | |
33 | EFI_STATUS\r | |
34 | EFIAPI\r | |
35 | BootLogoEnableLogo (\r | |
36 | IN IMAGE_FORMAT ImageFormat,\r | |
37 | IN EFI_GUID *Logo,\r | |
38 | IN EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE Attribute,\r | |
b9335cf5 RN |
39 | IN INTN OffsetX,\r |
40 | IN INTN OffsetY\r | |
8dfe7fd2 RN |
41 | );\r |
42 | \r | |
43 | \r | |
44 | /**\r | |
45 | Use SystemTable ConOut to turn on video based Simple Text Out consoles. The \r | |
46 | Simple Text Out screens will now be synced up with all non-video output devices.\r | |
47 | \r | |
48 | @retval EFI_SUCCESS UGA devices are back in text mode and synced up.\r | |
49 | \r | |
50 | **/\r | |
51 | EFI_STATUS\r | |
52 | EFIAPI\r | |
53 | BootLogoDisableLogo (\r | |
54 | VOID\r | |
55 | );\r | |
56 | \r | |
57 | /**\r | |
58 | \r | |
59 | Update progress bar with title above it. It only works in Graphics mode.\r | |
60 | \r | |
61 | @param TitleForeground Foreground color for Title.\r | |
62 | @param TitleBackground Background color for Title.\r | |
63 | @param Title Title above progress bar.\r | |
64 | @param ProgressColor Progress bar color.\r | |
65 | @param Progress Progress (0-100)\r | |
66 | @param PreviousValue The previous value of the progress.\r | |
67 | \r | |
68 | @retval EFI_STATUS Successly update the progress bar\r | |
69 | \r | |
70 | **/\r | |
71 | EFI_STATUS\r | |
72 | EFIAPI\r | |
73 | BootLogoUpdateProgress (\r | |
74 | IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,\r | |
75 | IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,\r | |
76 | IN CHAR16 *Title,\r | |
77 | IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,\r | |
78 | IN UINTN Progress,\r | |
79 | IN UINTN PreviousValue\r | |
80 | );\r | |
81 | \r | |
82 | #endif\r |