40 const BIFIconID icon = icon_override == ICON_NONE ?
44 path.
append({name,
static_cast<int>(icon)});
61 uiItemL(sub_row,
"", ICON_RIGHTARROW_THIN);
63 uiItemL(sub_row, context_path[i].name.c_str(), context_path[i].icon);
void uiItemL(uiLayout *layout, const char *name, int icon)
void uiLayoutSetAlignment(uiLayout *layout, char alignment)
uiLayout * uiLayoutRow(uiLayout *layout, bool align)
constexpr IndexRange index_range() const
void append(const T &value)
void template_breadcrumbs(uiLayout &layout, Span< ContextPathItem > context_path)
void context_path_add_generic(Vector< ContextPathItem > &path, StructRNA &rna_type, void *ptr, const BIFIconID icon_override=ICON_NONE)
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
char * RNA_struct_name_get_alloc(PointerRNA *ptr, char *fixedbuf, int fixedlen, int *r_len)
int RNA_struct_ui_icon(const StructRNA *type)