Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface.hh
| Show All 29 Lines | |||||
| * An item in a breadcrumb-like context. Currently this struct is very simple, but more | * An item in a breadcrumb-like context. Currently this struct is very simple, but more | ||||
| * could be added to it in the future, to support interactivity or tooltips, for example. | * could be added to it in the future, to support interactivity or tooltips, for example. | ||||
| */ | */ | ||||
| struct ContextPathItem { | struct ContextPathItem { | ||||
| /* Text to display in the UI. */ | /* Text to display in the UI. */ | ||||
| std::string name; | std::string name; | ||||
| /* #BIFIconID */ | /* #BIFIconID */ | ||||
| int icon; | int icon; | ||||
| int icon_indicator_number; | |||||
| }; | }; | ||||
| void context_path_add_generic(Vector<ContextPathItem> &path, | void context_path_add_generic(Vector<ContextPathItem> &path, | ||||
| StructRNA &rna_type, | StructRNA &rna_type, | ||||
| void *ptr, | void *ptr, | ||||
| const BIFIconID icon_override = ICON_NONE); | const BIFIconID icon_override = ICON_NONE); | ||||
| void template_breadcrumbs(uiLayout &layout, Span<ContextPathItem> context_path); | void template_breadcrumbs(uiLayout &layout, Span<ContextPathItem> context_path); | ||||
| Show All 20 Lines | |||||