85 printf(
"%s: cannot cycle button '%s'\n", __func__, but->
str);
113 static uint mem[256];
114 static bool first =
true;
121 memset(mem, -1,
sizeof(mem));
261 offset[0] =
min_ii(offset[0],
269 but_activate = but_iter;
359 handle->
popup =
true;
382 const char *block_name,
427 pup->
block,
UI_BTYPE_LABEL, 0, title, 0, 0, 200,
UI_UNIT_Y,
NULL, 0.0, 0.0, 0, 0,
"");
512 const char *msg, *msg_next;
530 msg = report->message;
534 msg_next = strchr(msg,
'\n');
542 }
while ((msg = msg_next) && *msg);
589 handle->
popup =
true;
603 void (*arg_free)(
void *arg))
619 handle->
popup =
true;
648 handle->opcontext = opcontext;
678 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, ReportType 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)
size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, const size_t maxncpy) ATTR_NONNULL()
#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 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
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
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)
void uiLayoutSetOperatorContext(uiLayout *layout, int opcontext)
bool UI_block_is_empty_ex(const uiBlock *block, const bool skip_title)
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)
float uiLayoutGetUnitsX(uiLayout *layout)
void uiLayoutContextCopy(uiLayout *layout, struct bContextStore *context)
void uiItemS(uiLayout *layout)
void UI_popup_handlers_add(struct bContext *C, struct ListBase *handlers, uiPopupBlockHandle *popup, const char flag)
void UI_block_bounds_set_menu(uiBlock *block, int addval, const int bounds_offset[2])
@ UI_BLOCK_MOVEMOUSE_QUIT
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)
@ UI_BLOCK_THEME_STYLE_POPUP
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)
@ WM_OP_INVOKE_REGION_WIN
void ui_but_activate_over(bContext *C, ARegion *region, uiBut *but)
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
uiPopupBlockHandle * ui_popup_block_create(struct bContext *C, struct ARegion *butregion, uiBut *but, uiBlockCreateFunc create_func, uiBlockHandleCreateFunc handle_create_func, void *arg, void(*arg_free)(void *arg))
#define UI_MENU_WIDTH_MIN
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
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)