23 #include "RNA_prototypes.h"
56 printf(
"search for unknown gizmo '%s'\n", idname);
61 printf(
"search for empty gizmo\n");
103 gtfunc(mt, userdata);
126 ListBase *lb = (sl ==
area->spacedata.first) ? &
area->regionbase : &sl->regionbase;
131 for (gzgroup = gzmap->
groups.
first; gzgroup; gzgroup = gzgroup->
next) {
135 if (gz->type == gzt) {
GHash * BLI_ghash_str_new_ex(const char *info, unsigned int nentries_reserve) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
void(* GHashValFreeFP)(void *val)
void * BLI_ghash_lookup(const GHash *gh, const void *key) ATTR_WARN_UNUSED_RESULT
bool BLI_ghash_remove(GHash *gh, const void *key, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp)
void BLI_ghash_insert(GHash *gh, void *key, void *val)
void BLI_ghash_free(GHash *gh, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp)
void BLI_ghashIterator_init(GHashIterator *ghi, GHash *gh)
#define LISTBASE_FOREACH(type, var, list)
void void BLI_freelistN(struct ListBase *listbase) ATTR_NONNULL(1)
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
void ED_region_tag_redraw_editor_overlays(struct ARegion *region)
Read Guarded memory(de)allocation.
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
static void area(int d1, int d2, int e1, int e2, float weights[2])
void RNA_def_struct_identifier(BlenderRNA *brna, StructRNA *srna, const char *identifier)
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
void RNA_def_struct_translation_context(StructRNA *srna, const char *context)
struct wmGizmoGroup * next
struct wmGizmoMap * parent_gzmap
ListBase target_property_defs
const char * translation_context
void WM_gizmo_unlink(ListBase *gizmolist, wmGizmoMap *gzmap, wmGizmo *gz, bContext *C)
static wmGizmoType * wm_gizmotype_append__begin(void)
void WM_gizmotype_append_ptr(void(*gtfunc)(struct wmGizmoType *, void *), void *userdata)
static void wm_gizmotype_ghash_free_cb(wmGizmoType *gzt)
static GHash * global_gizmotype_hash
static void wm_gizmotype_append__end(wmGizmoType *gzt)
void wm_gizmotype_init(void)
bool WM_gizmotype_remove(bContext *C, Main *bmain, const char *idname)
void WM_gizmotype_remove_ptr(bContext *C, Main *bmain, wmGizmoType *gzt)
static void gizmotype_unlink(bContext *C, Main *bmain, wmGizmoType *gzt)
void wm_gizmotype_free(void)
const wmGizmoType * WM_gizmotype_find(const char *idname, bool quiet)
void WM_gizmotype_append(void(*gtfunc)(struct wmGizmoType *))
void WM_gizmotype_iter(GHashIterator *ghi)
void WM_gizmotype_free_ptr(wmGizmoType *gzt)