24#include "RNA_prototypes.hh"
62 printf(
"search for unknown gizmo '%s'\n", std::string(idname).c_str());
67 printf(
"search for empty gizmo\n");
104 gtfunc(mt, userdata);
126 screen =
static_cast<bScreen *
>(screen->id.next))
128 for (
ScrArea &area : screen->areabase) {
133 wmGizmoMap *gzmap = region.runtime->gizmo_map;
136 for (
wmGizmo *gz = gzgroup.
gizmos.first(), *gz_next; gz; gz = gz_next) {
139 if (gz->type == gzt) {
164 if (gzt ==
nullptr) {
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
Read Blender memory allocation and freeing.
constexpr bool is_empty() const
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
static auto & get_gizmo_type_map()
void RNA_def_struct_identifier(BlenderRNA *brna, StructRNA *srna, const char *identifier)
void WM_gizmotype_remove_ptr(bContext *C, Main *bmain, wmGizmoType *gzt)
void WM_gizmotype_append(void(*gtfunc)(wmGizmoType *))
const wmGizmoType * WM_gizmotype_find(const StringRef idname, bool quiet)
static wmGizmoType * wm_gizmotype_append__begin()
bool WM_gizmotype_remove(bContext *C, Main *bmain, const StringRef idname)
void ED_region_tag_redraw_editor_overlays(ARegion *region)
void WM_gizmo_unlink(ListBaseT< wmGizmo > *gizmolist, wmGizmoMap *gzmap, wmGizmo *gz, bContext *C)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
VectorSet< T, InlineBufferCapacity, DefaultProbingStrategy, CustomIDHash< T, GetIDFn >, CustomIDEqual< T, GetIDFn > > CustomIDVectorSet
void WM_gizmotype_free_ptr(wmGizmoType *gzt)
void WM_gizmotype_append_ptr(void(*gtfunc)(wmGizmoType *, void *), void *userdata)
static void gizmotype_unlink(bContext *C, Main *bmain, wmGizmoType *gzt)
static void wm_gizmotype_append__end(wmGizmoType *gzt)
void RNA_def_struct_translation_context(StructRNA *srna, const char *context)
BlenderRNA RNA_blender_rna_get()
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
ListBaseT< bScreen > screens
ListBaseT< ARegion > regionbase
ListBaseT< SpaceLink > spacedata
ListBaseT< ARegion > regionbase
wmGizmoMap * parent_gzmap
ListBaseT< wmGizmo > gizmos
ListBaseT< wmGizmoGroup > groups
ListBaseT< wmGizmoPropertyType > target_property_defs