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;
#define RGN_TYPE_IS_HEADER_ANY(regiontype)
#define RNA_warning(format,...)
constexpr const char * c_str() const
constexpr bool is_empty() const
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)
void button_menu_disable_hover_open(Button *but)
std::optional< StringRefNull > button_context_string_get(const Button *but, StringRef name)
void item_paneltype_func(bContext *C, Layout *layout, void *arg_pt)
std::optional< StringRefNull > asset_shelf_idname_from_button_context(const Button *but)
void def_but_icon(Button *but, const int icon, const int64_t flag)
PopupBlockHandle * popover_panel_create(bContext *C, ARegion *butregion, Button *but, PopoverCreateFunc popover_func, const PanelType *panel_type)
void template_asset_shelf_popover(Layout &layout, const bContext &C, StringRefNull asset_shelf_id, StringRef name, int icon)
bool asset_shelf_popover_invoke(bContext &C, StringRef asset_shelf_idname, ReportList &reports)
PanelType * WM_paneltype_find(const StringRef idname, bool quiet)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
ARegion * CTX_wm_region(const bContext *C)
Vector< std::unique_ptr< Button > > buttons_ptrs
void ui_units_x_set(float width)
void scale_x_set(float scale)
void context_string_set(StringRef name, StringRef value)
void scale_y_set(float scale)
void popover(const bContext *C, PanelType *pt, std::optional< StringRef > name_opt, int icon)