38 #include "RNA_prototypes.h"
200 const bool show_missing =
false;
205 bool is_empty =
true;
206 for (
int um_index = 0; um_index < um_array_len; um_index++) {
212 const char *ui_name = umi->ui_name[0] ? umi->ui_name :
NULL;
273 if ((data_path ==
NULL) ||
279 menu->
layout, &prop_ptr, prop, umi_pr->
prop_index, 0, 0, ui_name, ICON_NONE);
302 uiItemL(menu->
layout,
TIP_(
"Right click on buttons to add them to this menu"), ICON_NONE);
309 strcpy(mt->
idname,
"SCREEN_MT_user_menu");
310 strcpy(mt->
label,
N_(
"Quick Favorites"));
PointerRNA CTX_data_pointer_get(const bContext *C, const char *member)
const char * CTX_data_mode_string(const bContext *C)
struct SpaceLink * CTX_wm_space_data(const bContext *C)
bool IDP_EqualsProperties(struct IDProperty *prop1, struct IDProperty *prop2) ATTR_WARN_UNUSED_RESULT
struct IDProperty * IDP_CopyProperty(const struct IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
#define LISTBASE_FOREACH(type, var, list)
void BLI_remlink(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define STRNCPY(dst, src)
#define SNPRINTF(dst, format,...)
#define CTX_IFACE_(context, msgid)
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
@ USER_MENU_TYPE_OPERATOR
Read Guarded memory(de)allocation.
void uiItemL(uiLayout *layout, const char *name, int icon)
void uiItemS(uiLayout *layout)
void uiItemFullO_ptr(uiLayout *layout, struct wmOperatorType *ot, const char *name, int icon, struct IDProperty *properties, wmOperatorCallContext context, int flag, struct PointerRNA *r_opptr)
void uiItemM_ptr(uiLayout *layout, struct MenuType *mt, const char *name, int icon)
void uiItemFullR(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, int value, int flag, const char *name, int icon)
void(* MEM_freeN)(void *vmemh)
void *(* MEM_calloc_arrayN)(size_t len, size_t size, const char *str)
void *(* MEM_callocN)(size_t len, const char *str)
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
bool RNA_path_resolve_full(const PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop, int *r_index)
const char * translation_context
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)