Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_context.h
| Show All 39 Lines | |||||
| struct ScrArea; | struct ScrArea; | ||||
| struct SpaceClip; | struct SpaceClip; | ||||
| struct SpaceImage; | struct SpaceImage; | ||||
| struct SpaceLink; | struct SpaceLink; | ||||
| struct SpaceText; | struct SpaceText; | ||||
| struct StructRNA; | struct StructRNA; | ||||
| struct Text; | struct Text; | ||||
| struct ToolSettings; | struct ToolSettings; | ||||
| struct VideoEdit; | |||||
| struct View3D; | struct View3D; | ||||
| struct ViewLayer; | struct ViewLayer; | ||||
| struct bGPDframe; | struct bGPDframe; | ||||
| struct bGPDlayer; | struct bGPDlayer; | ||||
| struct bGPdata; | struct bGPdata; | ||||
| struct bPoseChannel; | struct bPoseChannel; | ||||
| struct bScreen; | struct bScreen; | ||||
| struct wmWindow; | struct wmWindow; | ||||
| ▲ Show 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | |||||
| int ctx_data_list_count(const bContext *C, int (*func)(const bContext *, ListBase *)); | int ctx_data_list_count(const bContext *C, int (*func)(const bContext *, ListBase *)); | ||||
| #define CTX_DATA_COUNT(C, member) ctx_data_list_count(C, CTX_data_##member) | #define CTX_DATA_COUNT(C, member) ctx_data_list_count(C, CTX_data_##member) | ||||
| /* Data Context Members */ | /* Data Context Members */ | ||||
| struct Main *CTX_data_main(const bContext *C); | struct Main *CTX_data_main(const bContext *C); | ||||
| struct Scene *CTX_data_scene(const bContext *C); | struct Scene *CTX_data_scene(const bContext *C); | ||||
| struct VideoEdit *CTX_data_video_edit(const bContext *C); | |||||
| /** | /** | ||||
| * This is tricky. Sometimes the user overrides the render_layer | * This is tricky. Sometimes the user overrides the render_layer | ||||
| * but not the scene_collection. In this case what to do? | * but not the scene_collection. In this case what to do? | ||||
| * | * | ||||
| * If the scene_collection is linked to the #ViewLayer we use it. | * If the scene_collection is linked to the #ViewLayer we use it. | ||||
| * Otherwise we fallback to the active one of the #ViewLayer. | * Otherwise we fallback to the active one of the #ViewLayer. | ||||
| */ | */ | ||||
| struct LayerCollection *CTX_data_layer_collection(const bContext *C); | struct LayerCollection *CTX_data_layer_collection(const bContext *C); | ||||
| struct Collection *CTX_data_collection(const bContext *C); | struct Collection *CTX_data_collection(const bContext *C); | ||||
| struct ViewLayer *CTX_data_view_layer(const bContext *C); | struct ViewLayer *CTX_data_view_layer(const bContext *C); | ||||
| struct RenderEngineType *CTX_data_engine_type(const bContext *C); | struct RenderEngineType *CTX_data_engine_type(const bContext *C); | ||||
| struct ToolSettings *CTX_data_tool_settings(const bContext *C); | struct ToolSettings *CTX_data_tool_settings(const bContext *C); | ||||
| const char *CTX_data_mode_string(const bContext *C); | const char *CTX_data_mode_string(const bContext *C); | ||||
| enum eContextObjectMode CTX_data_mode_enum_ex(const struct Object *obedit, | enum eContextObjectMode CTX_data_mode_enum_ex(const struct Object *obedit, | ||||
| const struct Object *ob, | const struct Object *ob, | ||||
| eObjectMode object_mode); | eObjectMode object_mode); | ||||
| enum eContextObjectMode CTX_data_mode_enum(const bContext *C); | enum eContextObjectMode CTX_data_mode_enum(const bContext *C); | ||||
| void CTX_data_main_set(bContext *C, struct Main *bmain); | void CTX_data_main_set(bContext *C, struct Main *bmain); | ||||
| void CTX_data_scene_set(bContext *C, struct Scene *scene); | void CTX_data_scene_set(bContext *C, struct Scene *scene); | ||||
| void CTX_data_video_edit_set(bContext *C, struct VideoEdit *video_edit); | |||||
| /* Only Outliner currently! */ | /* Only Outliner currently! */ | ||||
| int CTX_data_selected_ids(const bContext *C, ListBase *list); | int CTX_data_selected_ids(const bContext *C, ListBase *list); | ||||
| int CTX_data_selected_editable_objects(const bContext *C, ListBase *list); | int CTX_data_selected_editable_objects(const bContext *C, ListBase *list); | ||||
| int CTX_data_selected_editable_bases(const bContext *C, ListBase *list); | int CTX_data_selected_editable_bases(const bContext *C, ListBase *list); | ||||
| int CTX_data_editable_objects(const bContext *C, ListBase *list); | int CTX_data_editable_objects(const bContext *C, ListBase *list); | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||