UI: Alert Dialog Helper Function

Shared helper function to create a split layout with an alert icon for popup dialogs.

Differential Revision: https://developer.blender.org/D9486

Reviewed by Julian Eisel
This commit is contained in:
Yevgeny Makarov
2020-12-06 11:17:51 -08:00
committed by Harley Acheson
parent 79eeabafb3
commit ee70eb96cf
3 changed files with 47 additions and 29 deletions

View File

@@ -26,6 +26,7 @@
#include "BLI_compiler_attrs.h"
#include "BLI_sys_types.h" /* size_t */
#include "RNA_types.h"
#include "UI_interface_icons.h"
#ifdef __cplusplus
extern "C" {
@@ -2431,6 +2432,9 @@ void uiItemTabsEnumR_prop(uiLayout *layout,
/* Only for testing, inspecting layouts. */
const char *UI_layout_introspect(uiLayout *layout);
/* Helper to add a big icon and create a split layout for alert boxes. */
uiLayout *uiItemsAlertBox(uiBlock *block, const int size, const eAlertIcon icon);
/* UI Operators */
typedef struct uiDragColorHandle {
float color[3];