Blender  V3.3
wm_gizmo_type.c File Reference
#include <stdio.h>
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_main.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "MEM_guardedalloc.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_prototypes.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_screen.h"
#include "wm.h"
#include "wm_gizmo_intern.h"
#include "wm_gizmo_wmapi.h"

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 = NULL
 
const wmGizmoTypeWM_gizmotype_find (const char *idname, bool quiet)
 
void WM_gizmotype_iter (GHashIterator *ghi)
 
static wmGizmoTypewm_gizmotype_append__begin (void)
 
static void wm_gizmotype_append__end (wmGizmoType *gzt)
 
void WM_gizmotype_append (void(*gtfunc)(struct wmGizmoType *))
 
void WM_gizmotype_append_ptr (void(*gtfunc)(struct 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)
 
void wm_gizmotype_init (void)
 

Function Documentation

◆ gizmotype_unlink()

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

◆ WM_gizmotype_append()

void WM_gizmotype_append ( void(*)(struct wmGizmoType *)  gtfunc)

◆ wm_gizmotype_append__begin()

static wmGizmoType* wm_gizmotype_append__begin ( void  )
static

◆ wm_gizmotype_append__end()

static void wm_gizmotype_append__end ( wmGizmoType gzt)
static

◆ WM_gizmotype_append_ptr()

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

Definition at line 100 of file wm_gizmo_type.c.

References wm_gizmotype_append__begin(), and wm_gizmotype_append__end().

◆ WM_gizmotype_find()

const wmGizmoType* WM_gizmotype_find ( const char *  idname,
bool  quiet 
)

◆ wm_gizmotype_free()

void wm_gizmotype_free ( void  )

Definition at line 175 of file wm_gizmo_type.c.

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

Referenced by WM_exit_ex().

◆ WM_gizmotype_free_ptr()

void WM_gizmotype_free_ptr ( struct wmGizmoType gzt)

◆ wm_gizmotype_ghash_free_cb()

static void wm_gizmotype_ghash_free_cb ( wmGizmoType gzt)
static

Definition at line 170 of file wm_gizmo_type.c.

References WM_gizmotype_free_ptr().

Referenced by wm_gizmotype_free().

◆ wm_gizmotype_init()

void wm_gizmotype_init ( void  )

Called on initialize WM_init().

Definition at line 181 of file wm_gizmo_type.c.

References BLI_ghash_str_new_ex(), and global_gizmotype_hash.

Referenced by WM_init().

◆ WM_gizmotype_iter()

void WM_gizmotype_iter ( struct GHashIterator ghi)

Caller must free.

Definition at line 68 of file wm_gizmo_type.c.

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

GHash* global_gizmotype_hash = NULL
static