15#include "RNA_prototypes.hh"
45 const bool use_preview_icon = use_big_size;
58 if (use_preview_icon) {
80 std::string asset_shelf_id_str = asset_shelf_idname;
ARegion * CTX_wm_region(const bContext *C)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
#define RGN_TYPE_IS_HEADER_ANY(regiontype)
#define RNA_warning(format,...)
void uiLayoutSetScaleY(uiLayout *layout, float scale)
uiBlock * uiLayoutGetBlock(uiLayout *layout)
uiLayout * uiLayoutRow(uiLayout *layout, bool align)
void uiLayoutSetScaleX(uiLayout *layout, float scale)
std::optional< blender::StringRefNull > UI_but_context_string_get(const uiBut *but, const char *name)
void uiLayoutSetUnitsX(uiLayout *layout, float unit)
void uiLayoutSetContextString(uiLayout *layout, const char *name, blender::StringRef value)
void uiItemPopoverPanel(uiLayout *layout, const bContext *C, const char *panel_type, const char *name, int icon)
constexpr const char * c_str() const
void ui_def_but_icon(uiBut *but, const int icon, const int flag)
void ui_item_paneltype_func(bContext *C, uiLayout *layout, void *arg_pt)
uiPopupBlockHandle * ui_popover_panel_create(bContext *C, ARegion *butregion, uiBut *but, uiPopoverCreateFunc popover_func, const PanelType *panel_type)
std::optional< StringRefNull > UI_asset_shelf_idname_from_button_context(const uiBut *but)
AssetShelfType * type_find_from_idname(const StringRef idname)
bool type_poll_for_popup(const bContext &C, const AssetShelfType *shelf_type)
bool asset_shelf_popover_invoke(bContext &C, blender::StringRef asset_shelf_idname, ReportList &reports)
void template_asset_shelf_popover(uiLayout &layout, const bContext &C, StringRefNull asset_shelf_id, StringRefNull name, int icon)
PanelType * WM_paneltype_find(const char *idname, bool quiet)