Blender V4.3
callbacks.cc File Reference
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BKE_callbacks.hh"
#include "MEM_guardedalloc.h"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"

Go to the source code of this file.

Macros

#define ASSERT_CALLBACKS_INITIALIZED()
 

Functions

void BKE_callback_exec (Main *bmain, PointerRNA **pointers, const int num_pointers, eCbEvent evt)
 
void BKE_callback_exec_null (Main *bmain, eCbEvent evt)
 
void BKE_callback_exec_id (Main *bmain, ID *id, eCbEvent evt)
 
void BKE_callback_exec_id_depsgraph (Main *bmain, ID *id, Depsgraph *depsgraph, eCbEvent evt)
 
void BKE_callback_exec_string (Main *bmain, eCbEvent evt, const char *str)
 
void BKE_callback_add (bCallbackFuncStore *funcstore, eCbEvent evt)
 
void BKE_callback_remove (bCallbackFuncStore *funcstore, eCbEvent evt)
 
void BKE_callback_global_init ()
 
void BKE_callback_global_finalize ()
 

Variables

static ListBase callback_slots [BKE_CB_EVT_TOT] = {{nullptr}}
 
static bool callbacks_initialized = false
 

Macro Definition Documentation

◆ ASSERT_CALLBACKS_INITIALIZED

#define ASSERT_CALLBACKS_INITIALIZED ( )
Value:
"Callbacks should be initialized with BKE_callback_global_init() before using " \
"the callback system.")
#define BLI_assert_msg(a, msg)
Definition BLI_assert.h:57
static bool callbacks_initialized
Definition callbacks.cc:21

Definition at line 23 of file callbacks.cc.

Referenced by BKE_callback_add(), and BKE_callback_exec().

Function Documentation

◆ BKE_callback_add()

◆ BKE_callback_exec()

◆ BKE_callback_exec_id()

◆ BKE_callback_exec_id_depsgraph()

void BKE_callback_exec_id_depsgraph ( Main * bmain,
ID * id,
Depsgraph * depsgraph,
eCbEvent evt )

◆ BKE_callback_exec_null()

◆ BKE_callback_exec_string()

◆ BKE_callback_global_finalize()

◆ BKE_callback_global_init()

◆ BKE_callback_remove()

Variable Documentation

◆ callback_slots

ListBase callback_slots[BKE_CB_EVT_TOT] = {{nullptr}}
static

◆ callbacks_initialized

bool callbacks_initialized = false
static