Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYevgeny Makarov <jenkm>2020-12-06 22:17:51 +0300
committerHarley Acheson <harley.acheson@gmail.com>2020-12-06 22:17:51 +0300
commitee70eb96cf321e8aca2248b96c64680a33c7766f (patch)
tree0cf4a4c0b541a559862c2ba1ad8baa54a6bd176c /source/blender/editors/include
parent79eeabafb39f8771c0f41c46dc8b819097e403cb (diff)
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
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r--source/blender/editors/include/UI_interface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index a190194d89d..005dbf0e381 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -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];