43 const bool use_preview_icon = use_big_size;
56 row->
popover(&C,
"ASSETSHELF_PT_popover_panel",
name, icon);
58 if (use_preview_icon) {
83 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 UI_but_menu_disable_hover_open(uiBut *but)
std::optional< blender::StringRefNull > UI_but_context_string_get(const uiBut *but, blender::StringRef name)
const T & last(const int64_t n=0) const
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(StringRef idname)
bool type_poll_for_popup(const bContext &C, const AssetShelfType *shelf_type)
void ensure_asset_library_fetched(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, StringRef name, int icon)
blender::Vector< std::unique_ptr< uiBut > > buttons
void popover(const bContext *C, PanelType *pt, std::optional< blender::StringRef > name_opt, int icon)
void scale_y_set(float scale)
void ui_units_x_set(float width)
void scale_x_set(float scale)
uiLayout & row(bool align)
void context_string_set(blender::StringRef name, blender::StringRef value)
PanelType * WM_paneltype_find(const StringRef idname, bool quiet)