Blender V5.0
wm_gizmo_type.cc File Reference
#include <cstdio>
#include "BLI_listbase.h"
#include "BLI_vector_set.hh"
#include "BKE_main.hh"
#include "BKE_screen.hh"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "MEM_guardedalloc.h"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_prototypes.hh"
#include "WM_types.hh"
#include "ED_screen.hh"
#include "wm_gizmo_intern.hh"
#include "wm_gizmo_wmapi.hh"

Go to the source code of this file.

Functions

Gizmo Type Append
Note
This follows conventions from WM_operatortype_find WM_operatortype_append & friends.
static auto & get_gizmo_type_map ()
const wmGizmoTypeWM_gizmotype_find (const StringRef idname, bool quiet)
static wmGizmoTypewm_gizmotype_append__begin ()
static void wm_gizmotype_append__end (wmGizmoType *gzt)
void WM_gizmotype_append (void(*gtfunc)(wmGizmoType *))
void WM_gizmotype_append_ptr (void(*gtfunc)(wmGizmoType *, void *), void *userdata)
void WM_gizmotype_free_ptr (wmGizmoType *gzt)
static void gizmotype_unlink (bContext *C, Main *bmain, wmGizmoType *gzt)
void WM_gizmotype_remove_ptr (bContext *C, Main *bmain, wmGizmoType *gzt)
bool WM_gizmotype_remove (bContext *C, Main *bmain, const StringRef idname)
void wm_gizmotype_free ()
void wm_gizmotype_init ()

Function Documentation

◆ get_gizmo_type_map()

◆ gizmotype_unlink()

void gizmotype_unlink ( bContext * C,
Main * bmain,
wmGizmoType * gzt )
static

◆ WM_gizmotype_append()

◆ wm_gizmotype_append__begin()

◆ wm_gizmotype_append__end()

◆ WM_gizmotype_append_ptr()

void WM_gizmotype_append_ptr ( void(* gtfunc )(wmGizmoType *, void *),
void * userdata )

Definition at line 101 of file wm_gizmo_type.cc.

References wm_gizmotype_append__begin(), and wm_gizmotype_append__end().

◆ WM_gizmotype_find()

◆ wm_gizmotype_free()

void wm_gizmotype_free ( )

Definition at line 174 of file wm_gizmo_type.cc.

References get_gizmo_type_map(), and WM_gizmotype_free_ptr().

Referenced by WM_exit_ex().

◆ WM_gizmotype_free_ptr()

void WM_gizmotype_free_ptr ( wmGizmoType * gzt)

Free but don't remove from the global list.

Definition at line 108 of file wm_gizmo_type.cc.

References BLI_freelistN(), wmGizmoType::idname, MEM_freeN(), wmGizmoType::rna_ext, ExtensionRNA::srna, and wmGizmoType::target_property_defs.

Referenced by wm_gizmotype_free().

◆ wm_gizmotype_init()

void wm_gizmotype_init ( )

Called on initialize WM_init().

Definition at line 182 of file wm_gizmo_type.cc.

References get_gizmo_type_map().

Referenced by WM_init().

◆ WM_gizmotype_remove()

bool WM_gizmotype_remove ( bContext * C,
Main * bmain,
const StringRef idname )

Definition at line 162 of file wm_gizmo_type.cc.

References C, get_gizmo_type_map(), and WM_gizmotype_remove_ptr().

◆ WM_gizmotype_remove_ptr()

void WM_gizmotype_remove_ptr ( bContext * C,
Main * bmain,
wmGizmoType * gzt )