Blender  V3.3
wm_gizmo_group_type.c File Reference
#include <stdio.h>
#include "BLI_ghash.h"
#include "BLI_utildefines.h"
#include "BKE_context.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 "wm.h"
#include "wm_gizmo_intern.h"
#include "wm_gizmo_wmapi.h"

Go to the source code of this file.

GizmoGroup Type Append

Note
This follows conventions from WM_operatortype_find WM_operatortype_append & friends.
static GHashglobal_gizmogrouptype_hash = NULL
 
wmGizmoGroupTypeWM_gizmogrouptype_find (const char *idname, bool quiet)
 
void WM_gizmogrouptype_iter (GHashIterator *ghi)
 
static wmGizmoGroupTypewm_gizmogrouptype_append__begin (void)
 
static void wm_gizmogrouptype_append__end (wmGizmoGroupType *gzgt)
 
wmGizmoGroupTypeWM_gizmogrouptype_append (void(*wtfunc)(struct wmGizmoGroupType *))
 
wmGizmoGroupTypeWM_gizmogrouptype_append_ptr (void(*wtfunc)(struct wmGizmoGroupType *, void *), void *userdata)
 
wmGizmoGroupTypeRefWM_gizmogrouptype_append_and_link (wmGizmoMapType *gzmap_type, void(*wtfunc)(struct wmGizmoGroupType *))
 
static void gizmogrouptype_free (wmGizmoGroupType *gzgt)
 
void WM_gizmo_group_type_free_ptr (wmGizmoGroupType *gzgt)
 
bool WM_gizmo_group_type_free (const char *idname)
 
static void wm_gizmogrouptype_ghash_free_cb (wmGizmoGroupType *gzgt)
 
void wm_gizmogrouptype_free (void)
 
void wm_gizmogrouptype_init (void)
 

Function Documentation

◆ gizmogrouptype_free()

static void gizmogrouptype_free ( wmGizmoGroupType gzgt)
static

Free but don't remove from ghash.

Definition at line 130 of file wm_gizmo_group_type.c.

References wmGizmoGroupType::idname, MEM_freeN, wmGizmoGroupType::rna_ext, and ExtensionRNA::srna.

Referenced by WM_gizmo_group_type_free_ptr(), and wm_gizmogrouptype_ghash_free_cb().

◆ WM_gizmo_group_type_free()

bool WM_gizmo_group_type_free ( const char *  idname)

◆ WM_gizmo_group_type_free_ptr()

void WM_gizmo_group_type_free_ptr ( wmGizmoGroupType gzgt)

◆ WM_gizmogrouptype_append()

wmGizmoGroupType* WM_gizmogrouptype_append ( void(*)(struct wmGizmoGroupType *)  wtfunc)

◆ wm_gizmogrouptype_append__begin()

static wmGizmoGroupType* wm_gizmogrouptype_append__begin ( void  )
static

◆ wm_gizmogrouptype_append__end()

static void wm_gizmogrouptype_append__end ( wmGizmoGroupType gzgt)
static

◆ WM_gizmogrouptype_append_and_link()

wmGizmoGroupTypeRef* WM_gizmogrouptype_append_and_link ( struct wmGizmoMapType gzmap_type,
void(*)(struct wmGizmoGroupType *)  wtfunc 
)

◆ WM_gizmogrouptype_append_ptr()

wmGizmoGroupType* WM_gizmogrouptype_append_ptr ( void(*)(struct wmGizmoGroupType *, void *)  wtfunc,
void userdata 
)

◆ WM_gizmogrouptype_find()

wmGizmoGroupType* WM_gizmogrouptype_find ( const char *  idname,
bool  quiet 
)

◆ wm_gizmogrouptype_free()

void wm_gizmogrouptype_free ( void  )

◆ wm_gizmogrouptype_ghash_free_cb()

static void wm_gizmogrouptype_ghash_free_cb ( wmGizmoGroupType gzgt)
static

Definition at line 163 of file wm_gizmo_group_type.c.

References gizmogrouptype_free().

Referenced by wm_gizmogrouptype_free().

◆ wm_gizmogrouptype_init()

void wm_gizmogrouptype_init ( void  )

Called on initialize WM_init().

Definition at line 175 of file wm_gizmo_group_type.c.

References BLI_ghash_str_new_ex(), and global_gizmogrouptype_hash.

Referenced by WM_init().

◆ WM_gizmogrouptype_iter()

void WM_gizmogrouptype_iter ( struct GHashIterator ghi)

Caller must free.

Definition at line 61 of file wm_gizmo_group_type.c.

References BLI_ghashIterator_init(), and global_gizmogrouptype_hash.

Variable Documentation

◆ global_gizmogrouptype_hash

GHash* global_gizmogrouptype_hash = NULL
static