73 printf(
"%s: cannot cycle button '%s'\n", __func__, but->
str);
92 const char *delimit = use_sep ? strrchr(
str,
UI_SEP_CHAR) :
nullptr;
112 static uint mem[256];
113 static bool first =
true;
120 memset(mem, -1,
sizeof(mem));
242 uiBut *but_activate =
nullptr;
274 but_activate = but_iter;
323 uiPopupMenu *pup = MEM_cnew<uiPopupMenu>(__func__);
363 handle->
popup =
true;
382 const char *block_name,
386 uiPopupMenu *pup = MEM_cnew<uiPopupMenu>(__func__);
401 pup->
block->
handle = MEM_cnew<uiPopupBlockHandle>(__func__);
427 pup->
block,
UI_BTYPE_LABEL, 0, title, 0, 0, 200,
UI_UNIT_Y,
nullptr, 0.0, 0.0, 0, 0,
"");
452 uiBut *but =
nullptr;
508 const char *msg, *msg_next;
514 if (pup ==
nullptr) {
526 msg = report->message;
530 msg_next = strchr(msg,
'\n');
538 }
while ((msg = msg_next) && *msg);
585 handle->
popup =
true;
613 handle->
popup =
true;
643 handle->opcontext = opcontext;
673 if (
STREQ(block->name, name)) {
struct ARegion * CTX_wm_region(const bContext *C)
struct wmWindow * CTX_wm_window(const bContext *C)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
unsigned int BLI_ghashutil_strhash_n(const char *key, size_t n)
#define BLI_ghashutil_strhash(key)
#define LISTBASE_FOREACH(type, var, list)
int BLI_findindex(const struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
MINLINE int min_ii(int a, int b)
BLI_INLINE float BLI_rctf_size_x(const struct rctf *rct)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
#define RGN_ALIGN_ENUM_FROM_MASK(align)
#define RGN_TYPE_IS_HEADER_ANY(regiontype)
void ED_region_tag_refresh_ui(struct ARegion *region)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width
Read Guarded memory(de)allocation.
uiBut * uiDefIconTextBut(uiBlock *block, int type, int retval, int icon, const char *str, int x, int y, short width, short height, void *poin, float min, float max, float a1, float a2, const char *tip)
const struct uiStyle * UI_style_get_dpi(void)
void UI_block_theme_style_set(uiBlock *block, char theme_style)
int UI_icon_from_report_type(int type)
void UI_menutype_draw(struct bContext *C, struct MenuType *mt, struct uiLayout *layout)
uiBut * uiDefBut(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, void *poin, float min, float max, float a1, float a2, const char *tip)
void(* uiBlockHandleFunc)(struct bContext *C, void *arg, int event)
void uiItemL(uiLayout *layout, const char *name, int icon)
@ UI_BLOCK_THEME_STYLE_POPUP
float uiLayoutGetUnitsX(uiLayout *layout)
void uiLayoutContextCopy(uiLayout *layout, struct bContextStore *context)
void uiItemS(uiLayout *layout)
void(* uiFreeArgFunc)(void *arg)
void UI_popup_handlers_add(struct bContext *C, struct ListBase *handlers, uiPopupBlockHandle *popup, char flag)
void UI_block_bounds_set_menu(uiBlock *block, int addval, const int bounds_offset[2])
bool UI_block_is_empty_ex(const uiBlock *block, bool skip_title)
uiLayout * UI_block_layout(uiBlock *block, int dir, int type, int x, int y, int size, int em, int padding, const struct uiStyle *style)
void UI_block_bounds_set_text(uiBlock *block, int addval)
void UI_block_free(const struct bContext *C, uiBlock *block)
bool UI_block_active_only_flagged_buttons(const struct bContext *C, struct ARegion *region, struct uiBlock *block)
uiBlock * UI_block_begin(const struct bContext *C, struct ARegion *region, const char *name, eUIEmbossType emboss)
void UI_block_order_flip(uiBlock *block)
void UI_block_layout_resolve(uiBlock *block, int *r_x, int *r_y)
void(* uiMenuCreateFunc)(struct bContext *C, struct uiLayout *layout, void *arg1)
void UI_block_direction_set(uiBlock *block, char direction)
void UI_block_flag_enable(uiBlock *block, int flag)
void UI_popup_handlers_remove(struct ListBase *handlers, uiPopupBlockHandle *popup)
void uiLayoutSetOperatorContext(uiLayout *layout, wmOperatorCallContext opcontext)
void(* uiBlockCancelFunc)(struct bContext *C, void *arg1)
void UI_block_region_set(uiBlock *block, struct ARegion *region)
uiBlock *(* uiBlockCreateFunc)(struct bContext *C, struct ARegion *region, void *arg1)
@ UI_BLOCK_MOVEMOUSE_QUIT
@ WM_OP_INVOKE_REGION_WIN
void ui_but_activate_over(bContext *C, ARegion *region, uiBut *but)
uiPopupBlockHandle * ui_popup_block_create(struct bContext *C, struct ARegion *butregion, uiBut *but, uiBlockCreateFunc create_func, uiBlockHandleCreateFunc handle_create_func, void *arg, uiFreeArgFunc arg_free)
void ui_popup_block_free(struct bContext *C, uiPopupBlockHandle *handle)
bool ui_block_is_menu(const uiBlock *block) ATTR_WARN_UNUSED_RESULT
bool ui_but_is_editable(const uiBut *but) ATTR_WARN_UNUSED_RESULT
#define UI_MENU_WIDTH_MIN
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
void(* MEM_freeN)(void *vmemh)
PropertyType RNA_property_type(PropertyRNA *prop)
int RNA_property_enum_step(const bContext *C, PointerRNA *ptr, PropertyRNA *prop, int from_value, int step)
int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop)
uiPopupBlockHandle * handle
struct bContextStore * context
char drawstr[UI_MAX_DRAW_STR]
uiMenuStepFunc menu_step_func
struct PropertyRNA * rnaprop
struct PointerRNA rnapoin
struct wmOperator * popup_op
void(* cancel_func)(struct bContext *C, void *arg)
void(* popup_func)(struct bContext *C, void *arg, int event)
struct wmEvent * eventstate
void WM_event_add_mousemove(wmWindow *win)
bScreen * WM_window_get_active_screen(const wmWindow *win)