50 printf(
"search for unknown menutype %s\n", std::string(idname).c_str());
86 if (mt->rna_ext.free) {
87 mt->rna_ext.free(mt->rna_ext.data);
104 if (mt->
poll !=
nullptr) {
105 return mt->
poll(
C, mt);
119 visit_params.
text = mt->idname;
120 visit_params.
info = mt->label;
121 visit_fn(visit_params);
Read Blender memory allocation and freeing.
#define UNUSED_VARS_NDEBUG(...)
constexpr bool is_empty() const
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
static auto & get_menu_type_map()
Span< MenuType * > WM_menutypes_registered_get()
WorkSpace * CTX_wm_workspace(const bContext *C)
bool BKE_workspace_owner_id_check(const WorkSpace *workspace, const char *owner_id) ATTR_NONNULL()
MenuType * WM_menutype_find(const StringRef idname, bool quiet)
VectorSet< T, InlineBufferCapacity, DefaultProbingStrategy, CustomIDHash< T, GetIDFn >, CustomIDEqual< T, GetIDFn > > CustomIDVectorSet
void WM_menutype_idname_visit_for_search(const bContext *, PointerRNA *, PropertyRNA *, const char *, FunctionRef< void(StringPropertySearchVisitParams)> visit_fn)
bool WM_menutype_poll(bContext *C, MenuType *mt)
bool WM_menutype_add(MenuType *mt)
void WM_menutype_freelink(MenuType *mt)
std::optional< std::string > info