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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user