Blender V4.3
wm_gizmo_type.cc File Reference
#include <cstdio>
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BKE_main.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.

Gizmo Type Append

Note
This follows conventions from WM_operatortype_find WM_operatortype_append & friends.
static GHashglobal_gizmotype_hash = nullptr
 
const wmGizmoTypeWM_gizmotype_find (const char *idname, bool quiet)
 
void WM_gizmotype_iter (GHashIterator *ghi)
 
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 char *idname)
 
static void wm_gizmotype_ghash_free_cb (wmGizmoType *gzt)
 
void wm_gizmotype_free ()
 
void wm_gizmotype_init ()
 

Function Documentation

◆ gizmotype_unlink()

static 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 97 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 176 of file wm_gizmo_type.cc.

References BLI_ghash_free(), global_gizmotype_hash, and wm_gizmotype_ghash_free_cb().

Referenced by WM_exit_ex().

◆ WM_gizmotype_free_ptr()

void WM_gizmotype_free_ptr ( wmGizmoType * gzt)

◆ wm_gizmotype_ghash_free_cb()

static void wm_gizmotype_ghash_free_cb ( wmGizmoType * gzt)
static

Definition at line 171 of file wm_gizmo_type.cc.

References WM_gizmotype_free_ptr().

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 BLI_ghash_str_new_ex(), and global_gizmotype_hash.

Referenced by WM_init().

◆ WM_gizmotype_iter()

void WM_gizmotype_iter ( GHashIterator * ghi)

Caller must free.

Definition at line 65 of file wm_gizmo_type.cc.

References BLI_ghashIterator_init(), and global_gizmotype_hash.

◆ WM_gizmotype_remove()

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

◆ WM_gizmotype_remove_ptr()

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

Variable Documentation

◆ global_gizmotype_hash