Blender V5.0
LibraryForeachIDData Struct Reference

Public Member Functions

 BLI_LINKSTACK_DECLARE (ids_todo, ID *)

Public Attributes

Mainbmain
IDowner_id
IDself_id
LibraryForeachIDFlag flag
LibraryForeachIDCallbackFlag cb_flag
LibraryForeachIDCallbackFlag cb_flag_clear
blender::FunctionRef< LibraryIDLinkCallbackcallback
void * user_data
int status
GSetids_handled

Detailed Description

Definition at line 36 of file lib_query.cc.

Member Function Documentation

◆ BLI_LINKSTACK_DECLARE()

LibraryForeachIDData::BLI_LINKSTACK_DECLARE ( ids_todo ,
ID *  )

Member Data Documentation

◆ bmain

Main* LibraryForeachIDData::bmain

Definition at line 37 of file lib_query.cc.

Referenced by library_foreach_ID_link().

◆ callback

blender::FunctionRef<LibraryIDLinkCallback> LibraryForeachIDData::callback

Function to call for every ID pointers of current processed data, and its opaque user data pointer.

Definition at line 60 of file lib_query.cc.

◆ cb_flag

LibraryForeachIDCallbackFlag LibraryForeachIDData::cb_flag

Generic flags to be passed to all callback calls for current processed data.

Definition at line 52 of file lib_query.cc.

Referenced by library_foreach_ID_link().

◆ cb_flag_clear

LibraryForeachIDCallbackFlag LibraryForeachIDData::cb_flag_clear

Callback flags that are forbidden for all callback calls for current processed data.

Definition at line 54 of file lib_query.cc.

Referenced by library_foreach_ID_link().

◆ flag

LibraryForeachIDFlag LibraryForeachIDData::flag

Flags controlling the behavior of the 'foreach id' looping code.

Definition at line 50 of file lib_query.cc.

◆ ids_handled

GSet* LibraryForeachIDData::ids_handled

Definition at line 69 of file lib_query.cc.

◆ owner_id

ID* LibraryForeachIDData::owner_id

'Real' ID, the one that might be in bmain, only differs from self_id when the later is a private one.

Definition at line 42 of file lib_query.cc.

◆ self_id

ID* LibraryForeachIDData::self_id

ID from which the current ID pointer is being processed. It may be an embedded ID like master collection or root node tree.

Definition at line 47 of file lib_query.cc.

◆ status

int LibraryForeachIDData::status

Store the returned value from the callback, to decide how to continue the processing of ID pointers for current data.

Definition at line 66 of file lib_query.cc.

◆ user_data

void* LibraryForeachIDData::user_data

Definition at line 61 of file lib_query.cc.


The documentation for this struct was generated from the following file: