Blender  V2.93
outliner_intern.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2008 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #include "RNA_types.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 /* internal exports only */
33 
34 struct ARegion;
35 struct EditBone;
36 struct ID;
37 struct ListBase;
38 struct Main;
39 struct Object;
40 struct Scene;
41 struct TreeElement;
42 struct TreeStoreElem;
43 struct ViewLayer;
44 struct bContext;
45 struct bContextDataResult;
46 struct bPoseChannel;
47 struct wmKeyConfig;
48 struct wmOperatorType;
49 
50 typedef struct SpaceOutliner_Runtime {
54 
57  struct GHash *treehash;
59 
60 typedef enum TreeElementInsertType {
65 
66 typedef enum TreeTraversalAction {
74 
75 typedef TreeTraversalAction (*TreeTraversalFunc)(struct TreeElement *te, void *customdata);
76 
77 typedef struct TreeElement {
78  struct TreeElement *next, *prev, *parent;
79 
86 
88  int xs, ys; /* Do selection. */
89  TreeStoreElem *store_elem; /* Element in tree store. */
90  short flag; /* Flag for non-saved stuff. */
91  short index; /* Index for data arrays. */
92  short idcode; /* From TreeStore id. */
93  short xend; /* Width of item display, for select. */
94  const char *name;
95  void *directdata; /* Armature Bones, Base, Sequence, Strip... */
96  PointerRNA rnaptr; /* RNA Pointer. */
98 
99 typedef struct TreeElementIcon {
100  struct ID *drag_id, *drag_parent;
101  int icon;
103 
104 #define TREESTORE_ID_TYPE(_id) \
105  (ELEM(GS((_id)->name), \
106  ID_SCE, \
107  ID_LI, \
108  ID_OB, \
109  ID_ME, \
110  ID_CU, \
111  ID_MB, \
112  ID_NT, \
113  ID_MA, \
114  ID_TE, \
115  ID_IM, \
116  ID_LT, \
117  ID_LA, \
118  ID_CA) || \
119  ELEM(GS((_id)->name), \
120  ID_KE, \
121  ID_WO, \
122  ID_SPK, \
123  ID_GR, \
124  ID_AR, \
125  ID_AC, \
126  ID_BR, \
127  ID_PA, \
128  ID_GD, \
129  ID_LS, \
130  ID_LP, \
131  ID_HA, \
132  ID_PT, \
133  ID_VO, \
134  ID_SIM) || /* Only in 'blendfile' mode ... :/ */ \
135  ELEM(GS((_id)->name), \
136  ID_SCR, \
137  ID_WM, \
138  ID_TXT, \
139  ID_VF, \
140  ID_SO, \
141  ID_CF, \
142  ID_PAL, \
143  ID_MC, \
144  ID_WS, \
145  ID_MSK, \
146  ID_PC))
147 
148 /* TreeElement->flag */
149 enum {
150  TE_ACTIVE = (1 << 0),
151  /* Closed items display their children as icon within the row. TE_ICONROW is for
152  * these child-items that are visible but only within the row of the closed parent. */
153  TE_ICONROW = (1 << 1),
154  TE_LAZY_CLOSED = (1 << 2),
155  TE_FREE_NAME = (1 << 3),
156  TE_DRAGGING = (1 << 4),
158  /* Child elements of the same type in the icon-row are drawn merged as one icon.
159  * This flag is set for an element that is part of these merged child icons. */
160  TE_ICONROW_MERGED = (1 << 7),
161 };
162 
163 /* button events */
164 #define OL_NAMEBUTTON 1
165 
166 typedef enum {
167  OL_DRAWSEL_NONE = 0, /* inactive (regular black text) */
168  OL_DRAWSEL_NORMAL = 1, /* active object (draws white text) */
169  OL_DRAWSEL_ACTIVE = 2, /* active obdata (draws a circle around the icon) */
170 } eOLDrawState;
171 
172 typedef enum {
173  OL_SETSEL_NONE = 0, /* don't change the selection state */
174  OL_SETSEL_NORMAL = 1, /* select the item */
175  OL_SETSEL_EXTEND = 2, /* select the item and extend (also toggles selection) */
176 } eOLSetState;
177 
178 /* get TreeStoreElem associated with a TreeElement
179  * < a: (TreeElement) tree element to find stored element for
180  */
181 #define TREESTORE(a) ((a)->store_elem)
182 
183 /* size constants */
184 #define OL_Y_OFFSET 2
185 
186 #define OL_TOG_USER_BUTS_USERS (UI_UNIT_X * 2.0f + V2D_SCROLL_WIDTH)
187 #define OL_TOG_USER_BUTS_STATUS (UI_UNIT_X + V2D_SCROLL_WIDTH)
188 
189 #define OL_RNA_COLX (UI_UNIT_X * 15)
190 #define OL_RNA_COL_SIZEX (UI_UNIT_X * 7.5f)
191 #define OL_RNA_COL_SPACEX (UI_UNIT_X * 2.5f)
192 
193 /* The outliner display modes that support the filter system.
194  * Note: keep it synced with space_outliner.py */
195 #define SUPPORT_FILTER_OUTLINER(space_outliner_) \
196  (ELEM((space_outliner_)->outlinevis, SO_VIEW_LAYER, SO_OVERRIDES_LIBRARY))
197 
198 /* Outliner Searching --
199  *
200  * Are we looking for something in the outliner?
201  * If so finding matches in child items makes it more useful
202  *
203  * - We want to flag parents to act as being open to filter child matches
204  * - and also flag matches so we can highlight them
205  * - Flags are stored in TreeStoreElem->flag
206  * - Flag options defined in DNA_outliner_types.h
207  * - SO_SEARCH_RECURSIVE defined in DNA_space_types.h
208  *
209  * - NOT in data-blocks view - searching all data-blocks takes way too long
210  * to be useful
211  * - not searching into RNA items helps but isn't the complete solution
212  */
213 
214 #define SEARCHING_OUTLINER(sov) (sov->search_flags & SO_SEARCH_RECURSIVE)
215 
216 /* is the current element open? if so we also show children */
217 #define TSELEM_OPEN(telm, sv) \
218  (((telm)->flag & TSE_CLOSED) == 0 || \
219  (SEARCHING_OUTLINER(sv) && ((telm)->flag & TSE_CHILDSEARCH)))
220 
225 typedef struct TreeViewContext {
226  /* Scene level. */
227  struct Scene *scene;
229 
230  /* Object level. */
239 
240 typedef enum TreeItemSelectAction {
241  OL_ITEM_DESELECT = 0, /* Deselect the item */
242  OL_ITEM_SELECT = (1 << 0), /* Select the item */
243  OL_ITEM_SELECT_DATA = (1 << 1), /* Select object data */
244  OL_ITEM_ACTIVATE = (1 << 2), /* Activate the item */
245  OL_ITEM_EXTEND = (1 << 3), /* Extend the current selection */
246  OL_ITEM_RECURSIVE = (1 << 4), /* Select recursively */
248 
249 /* outliner_tree.c ----------------------------------------------- */
250 
252 void outliner_cleanup_tree(struct SpaceOutliner *space_outliner);
254 
255 void outliner_build_tree(struct Main *mainvar,
256  struct Scene *scene,
257  struct ViewLayer *view_layer,
258  struct SpaceOutliner *space_outliner,
259  struct ARegion *region);
260 
262  const struct SpaceOutliner *space_outliner);
263 bool outliner_requires_rebuild_on_open_change(const struct SpaceOutliner *space_outliner);
264 
265 typedef struct IDsSelectedData {
266  struct ListBase selected_array;
268 
271 
272 /* outliner_draw.c ---------------------------------------------- */
273 
274 void draw_outliner(const struct bContext *C);
275 
276 void outliner_tree_dimensions(struct SpaceOutliner *space_outliner, int *r_width, int *r_height);
277 
279 
281  struct ViewLayer *view_layer,
282  struct LayerCollection *layer_collection,
283  struct Collection *collection,
284  struct PropertyRNA *layer_or_collection_prop,
285  const char *propname,
286  const bool value);
287 
289 
290 /* outliner_select.c -------------------------------------------- */
292  const TreeViewContext *tvc,
293  TreeElement *te,
294  TreeStoreElem *tselem,
295  const eOLSetState set,
296  bool recursive);
298  const struct TreeViewContext *tvc,
299  const TreeElement *te,
300  const TreeStoreElem *tselem);
301 void tree_element_activate(struct bContext *C,
302  const TreeViewContext *tvc,
303  TreeElement *te,
304  const eOLSetState set,
305  const bool handle_all_types);
307  const TreeElement *te,
308  const TreeStoreElem *tselem);
309 
311 
312 void outliner_item_select(struct bContext *C,
313  struct SpaceOutliner *space_outliner,
314  struct TreeElement *te,
315  const short select_flag);
316 
317 bool outliner_item_is_co_over_name_icons(const TreeElement *te, float view_co_x);
318 bool outliner_item_is_co_over_icon(const TreeElement *te, float view_co_x);
319 bool outliner_item_is_co_over_name(const TreeElement *te, float view_co_x);
320 bool outliner_item_is_co_within_close_toggle(const TreeElement *te, float view_co_x);
321 bool outliner_is_co_within_mode_column(SpaceOutliner *space_outliner, const float view_mval[2]);
322 
324  TreeViewContext *tvc,
325  TreeElement *te,
326  const bool do_extend);
327 
328 /* outliner_edit.c ---------------------------------------------- */
329 typedef void (*outliner_operation_fn)(struct bContext *C,
330  struct ReportList *,
331  struct Scene *scene,
332  struct TreeElement *,
333  struct TreeStoreElem *,
334  TreeStoreElem *,
335  void *);
336 
338  struct ReportList *reports,
339  struct Scene *scene,
340  struct SpaceOutliner *space_outliner,
341  struct ListBase *lb,
342  outliner_operation_fn operation_fn,
343  void *user_data,
344  bool recurse_selected);
346  struct ReportList *reports,
347  struct Scene *scene,
348  struct SpaceOutliner *space_outliner,
349  struct ListBase *lb,
350  outliner_operation_fn operation_fn);
351 
352 int outliner_flag_is_any_test(ListBase *lb, short flag, const int curlevel);
353 bool outliner_flag_set(ListBase *lb, short flag, short set);
354 bool outliner_flag_flip(ListBase *lb, short flag);
355 
356 void item_rename_fn(struct bContext *C,
357  struct ReportList *reports,
358  struct Scene *scene,
359  TreeElement *te,
360  struct TreeStoreElem *tsep,
361  struct TreeStoreElem *tselem,
362  void *user_data);
364  struct ReportList *reports,
365  struct Scene *scene,
366  struct TreeElement *te,
367  struct TreeStoreElem *tsep,
368  struct TreeStoreElem *tselem,
369  void *user_data);
370 void lib_reload_fn(struct bContext *C,
371  struct ReportList *reports,
372  struct Scene *scene,
373  struct TreeElement *te,
374  struct TreeStoreElem *tsep,
375  struct TreeStoreElem *tselem,
376  void *user_data);
377 
378 void id_delete_fn(struct bContext *C,
379  struct ReportList *reports,
380  struct Scene *scene,
381  struct TreeElement *te,
382  struct TreeStoreElem *tsep,
383  struct TreeStoreElem *tselem,
384  void *user_data);
385 void id_remap_fn(struct bContext *C,
386  struct ReportList *reports,
387  struct Scene *scene,
388  struct TreeElement *te,
389  struct TreeStoreElem *tsep,
390  struct TreeStoreElem *tselem,
391  void *user_data);
392 
393 void outliner_set_coordinates(struct ARegion *region, struct SpaceOutliner *space_outliner);
394 
395 void outliner_item_openclose(struct SpaceOutliner *space_outliner,
396  TreeElement *te,
397  bool open,
398  bool toggle_all);
399 
400 /* outliner_dragdrop.c */
401 void outliner_dropboxes(void);
402 
410 
411 /* ...................................................... */
412 
414 
420 
422 
426 
429 
432 
434 
437 
440 
442 
443 /* outliner_tools.c ---------------------------------------------- */
444 
446  TreeElement *parent_te,
447  TreeElement *activate_te);
448 
462 void OUTLINER_OT_delete(struct wmOperatorType *ot);
463 
464 /* ---------------------------------------------------------------- */
465 
466 /* outliner_ops.c */
467 void outliner_operatortypes(void);
468 void outliner_keymap(struct wmKeyConfig *keyconf);
469 
470 /* outliner_collections.c */
471 
475  struct Main *bmain,
476  struct Scene *scene,
477  struct ReportList *reports,
478  bool hierarchy);
479 
494 
504 void OUTLINER_OT_hide(struct wmOperatorType *ot);
506 
508 
509 /* outliner_utils.c ---------------------------------------------- */
510 
512 
513 TreeElement *outliner_find_item_at_y(const SpaceOutliner *space_outliner,
514  const ListBase *tree,
515  float view_co_y);
517  TreeElement *parent_te,
518  float view_co_x,
519  bool *r_is_merged_icon,
520  bool *r_is_over_icon);
521 TreeElement *outliner_find_tse(struct SpaceOutliner *space_outliner, const TreeStoreElem *tse);
524  TreeElement *parent_te,
525  const TreeElement *child_te);
527  ListBase *lb,
528  const struct ID *id);
532 struct ID *outliner_search_back(TreeElement *te, short idcode);
533 bool outliner_tree_traverse(const SpaceOutliner *space_outliner,
534  ListBase *tree,
535  int filter_te_flag,
536  int filter_tselem_flag,
537  TreeTraversalFunc func,
538  void *customdata);
539 float outliner_restrict_columns_width(const struct SpaceOutliner *space_outliner);
542 void outliner_scroll_view(struct SpaceOutliner *space_outliner,
543  struct ARegion *region,
544  int delta_y);
546  struct ARegion *region);
547 
548 /* outliner_sync.c ---------------------------------------------- */
549 
550 void outliner_sync_selection(const struct bContext *C, struct SpaceOutliner *space_outliner);
551 
552 /* outliner_context.c ------------------------------------------- */
553 
554 int outliner_context(const struct bContext *C,
555  const char *member,
556  struct bContextDataResult *result);
557 
558 #ifdef __cplusplus
559 }
560 #endif
#define C
Definition: RandGen.cpp:39
ATTR_WARN_UNUSED_RESULT const void * element
Scene scene
void * user_data
void * tree
void OUTLINER_OT_expanded_toggle(struct wmOperatorType *ot)
TreeElementInsertType
@ TE_INSERT_AFTER
@ TE_INSERT_BEFORE
@ TE_INSERT_INTO
bool outliner_requires_rebuild_on_select_or_active_change(const struct SpaceOutliner *space_outliner)
void OUTLINER_OT_unhide_all(struct wmOperatorType *ot)
struct TreeElement TreeElement
void id_remap_fn(struct bContext *C, struct ReportList *reports, struct Scene *scene, struct TreeElement *te, struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data)
void draw_outliner(const struct bContext *C)
TreeItemSelectAction
@ OL_ITEM_EXTEND
@ OL_ITEM_RECURSIVE
@ OL_ITEM_DESELECT
@ OL_ITEM_SELECT
@ OL_ITEM_ACTIVATE
@ OL_ITEM_SELECT_DATA
void OUTLINER_OT_drivers_delete_selected(struct wmOperatorType *ot)
bool outliner_tree_traverse(const SpaceOutliner *space_outliner, ListBase *tree, int filter_te_flag, int filter_tselem_flag, TreeTraversalFunc func, void *customdata)
void OUTLINER_OT_action_set(struct wmOperatorType *ot)
void outliner_viewcontext_init(const struct bContext *C, TreeViewContext *tvc)
TreeElement * outliner_find_editbone(ListBase *lb, const struct EditBone *ebone)
void OUTLINER_OT_collection_disable_render(struct wmOperatorType *ot)
@ TE_CHILD_NOT_IN_COLLECTION
@ TE_FREE_NAME
@ TE_ICONROW_MERGED
@ TE_ICONROW
@ TE_ACTIVE
@ TE_LAZY_CLOSED
@ TE_DRAGGING
TreeElement * outliner_find_posechannel(ListBase *lb, const struct bPoseChannel *pchan)
void OUTLINER_OT_collection_indirect_only_clear(struct wmOperatorType *ot)
void OUTLINER_OT_show_one_level(struct wmOperatorType *ot)
void OUTLINER_OT_parent_clear(struct wmOperatorType *ot)
eOLDrawState tree_element_active_state_get(const TreeViewContext *tvc, const TreeElement *te, const TreeStoreElem *tselem)
void OUTLINER_OT_collection_holdout_clear(struct wmOperatorType *ot)
void OUTLINER_OT_scroll_page(struct wmOperatorType *ot)
void OUTLINER_OT_highlight_update(struct wmOperatorType *ot)
void OUTLINER_OT_id_operation(struct wmOperatorType *ot)
bool outliner_flag_flip(ListBase *lb, short flag)
void outliner_collection_isolate_flag(struct Scene *scene, struct ViewLayer *view_layer, struct LayerCollection *layer_collection, struct Collection *collection, struct PropertyRNA *layer_or_collection_prop, const char *propname, const bool value)
struct TreeViewContext TreeViewContext
void OUTLINER_OT_lib_operation(struct wmOperatorType *ot)
int outliner_context(const struct bContext *C, const char *member, struct bContextDataResult *result)
TreeElement * outliner_find_element_with_flag(const ListBase *lb, short flag)
eOLSetState
@ OL_SETSEL_NORMAL
@ OL_SETSEL_EXTEND
@ OL_SETSEL_NONE
void OUTLINER_OT_collection_link(struct wmOperatorType *ot)
void id_delete_fn(struct bContext *C, struct ReportList *reports, struct Scene *scene, struct TreeElement *te, struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data)
void OUTLINER_OT_collection_exclude_set(struct wmOperatorType *ot)
void OUTLINER_OT_parent_drop(struct wmOperatorType *ot)
void lib_reload_fn(struct bContext *C, struct ReportList *reports, struct Scene *scene, struct TreeElement *te, struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data)
void outliner_do_object_operation_ex(struct bContext *C, struct ReportList *reports, struct Scene *scene, struct SpaceOutliner *space_outliner, struct ListBase *lb, outliner_operation_fn operation_fn, void *user_data, bool recurse_selected)
void outliner_free_tree(ListBase *tree)
bool outliner_item_is_co_within_close_toggle(const TreeElement *te, float view_co_x)
void OUTLINER_OT_collection_isolate(struct wmOperatorType *ot)
void OUTLINER_OT_collection_exclude_clear(struct wmOperatorType *ot)
bool outliner_item_is_co_over_name(const TreeElement *te, float view_co_x)
void OUTLINER_OT_operation(struct wmOperatorType *ot)
void outliner_scroll_view(struct SpaceOutliner *space_outliner, struct ARegion *region, int delta_y)
void OUTLINER_OT_collection_indirect_only_set(struct wmOperatorType *ot)
void OUTLINER_OT_collection_color_tag_set(struct wmOperatorType *ot)
TreeElement * outliner_find_tree_element(ListBase *lb, const TreeStoreElem *store_elem)
int tree_element_id_type_to_index(TreeElement *te)
void OUTLINER_OT_collection_enable_render(struct wmOperatorType *ot)
void OUTLINER_OT_scene_drop(struct wmOperatorType *ot)
void OUTLINER_OT_id_delete(struct wmOperatorType *ot)
void outliner_sync_selection(const struct bContext *C, struct SpaceOutliner *space_outliner)
void OUTLINER_OT_show_active(struct wmOperatorType *ot)
void outliner_item_select(struct bContext *C, struct SpaceOutliner *space_outliner, struct TreeElement *te, const short select_flag)
void OUTLINER_OT_collection_instance(struct wmOperatorType *ot)
void OUTLINER_OT_collection_hide(struct wmOperatorType *ot)
void outliner_build_tree(struct Main *mainvar, struct Scene *scene, struct ViewLayer *view_layer, struct SpaceOutliner *space_outliner, struct ARegion *region)
void OUTLINER_OT_collection_duplicate(struct wmOperatorType *ot)
void OUTLINER_OT_collection_hierarchy_delete(struct wmOperatorType *ot)
void OUTLINER_OT_item_drag_drop(struct wmOperatorType *ot)
eOLDrawState
@ OL_DRAWSEL_ACTIVE
@ OL_DRAWSEL_NORMAL
@ OL_DRAWSEL_NONE
void item_rename_fn(struct bContext *C, struct ReportList *reports, struct Scene *scene, TreeElement *te, struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data)
void OUTLINER_OT_keyingset_remove_selected(struct wmOperatorType *ot)
struct Collection * outliner_collection_from_tree_element(const TreeElement *te)
void OUTLINER_OT_collection_holdout_set(struct wmOperatorType *ot)
void outliner_item_mode_toggle(struct bContext *C, TreeViewContext *tvc, TreeElement *te, const bool do_extend)
void outliner_dropboxes(void)
bool outliner_requires_rebuild_on_open_change(const struct SpaceOutliner *space_outliner)
void OUTLINER_OT_hide(struct wmOperatorType *ot)
void outliner_do_object_operation(struct bContext *C, struct ReportList *reports, struct Scene *scene, struct SpaceOutliner *space_outliner, struct ListBase *lb, outliner_operation_fn operation_fn)
void OUTLINER_OT_id_remap(struct wmOperatorType *ot)
bool outliner_item_is_co_over_name_icons(const TreeElement *te, float view_co_x)
void OUTLINER_OT_scene_operation(struct wmOperatorType *ot)
TreeElement * outliner_search_back_te(TreeElement *te, short idcode)
float outliner_restrict_columns_width(const struct SpaceOutliner *space_outliner)
void outliner_cleanup_tree(struct SpaceOutliner *space_outliner)
void OUTLINER_OT_collection_disable(struct wmOperatorType *ot)
void OUTLINER_OT_select_box(struct wmOperatorType *ot)
void OUTLINER_OT_select_walk(struct wmOperatorType *ot)
void OUTLINER_OT_id_paste(struct wmOperatorType *ot)
void OUTLINER_OT_animdata_operation(struct wmOperatorType *ot)
void(* outliner_operation_fn)(struct bContext *C, struct ReportList *, struct Scene *scene, struct TreeElement *, struct TreeStoreElem *, TreeStoreElem *, void *)
void OUTLINER_OT_collection_show(struct wmOperatorType *ot)
void OUTLINER_OT_keyingset_add_selected(struct wmOperatorType *ot)
TreeElement * outliner_find_item_at_y(const SpaceOutliner *space_outliner, const ListBase *tree, float view_co_y)
void OUTLINER_OT_collection_duplicate_linked(struct wmOperatorType *ot)
void outliner_tree_dimensions(struct SpaceOutliner *space_outliner, int *r_width, int *r_height)
struct bPoseChannel * outliner_find_parent_bone(TreeElement *te, TreeElement **r_bone_te)
void outliner_keymap(struct wmKeyConfig *keyconf)
Definition: outliner_ops.c:112
void OUTLINER_OT_select_all(struct wmOperatorType *ot)
TreeTraversalAction outliner_find_selected_objects(struct TreeElement *te, void *customdata)
int outliner_flag_is_any_test(ListBase *lb, short flag, const int curlevel)
void OUTLINER_OT_item_rename(struct wmOperatorType *ot)
void tree_element_activate(struct bContext *C, const TreeViewContext *tvc, TreeElement *te, const eOLSetState set, const bool handle_all_types)
void OUTLINER_OT_constraint_operation(struct wmOperatorType *ot)
void OUTLINER_OT_data_operation(struct wmOperatorType *ot)
void OUTLINER_OT_object_operation(struct wmOperatorType *ot)
bool outliner_is_collection_tree_element(const TreeElement *te)
TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
bool outliner_is_element_visible(const TreeElement *te)
void OUTLINER_OT_delete(struct wmOperatorType *ot)
void outliner_item_openclose(struct SpaceOutliner *space_outliner, TreeElement *te, bool open, bool toggle_all)
void OUTLINER_OT_collection_drop(struct wmOperatorType *ot)
struct SpaceOutliner_Runtime SpaceOutliner_Runtime
void OUTLINER_OT_item_openclose(struct wmOperatorType *ot)
void OUTLINER_OT_show_hierarchy(struct wmOperatorType *ot)
void OUTLINER_OT_datastack_drop(struct wmOperatorType *ot)
void OUTLINER_OT_collection_show_inside(struct wmOperatorType *ot)
struct IDsSelectedData IDsSelectedData
void OUTLINER_OT_orphans_purge(struct wmOperatorType *ot)
void outliner_free_tree_element(TreeElement *element, ListBase *parent_subtree)
void OUTLINER_OT_lib_reload(struct wmOperatorType *ot)
void tree_element_type_active_set(struct bContext *C, const TreeViewContext *tvc, TreeElement *te, TreeStoreElem *tselem, const eOLSetState set, bool recursive)
void OUTLINER_OT_collection_enable(struct wmOperatorType *ot)
void OUTLINER_OT_modifier_operation(struct wmOperatorType *ot)
TreeElement * outliner_find_id(struct SpaceOutliner *space_outliner, ListBase *lb, const struct ID *id)
bool outliner_item_is_co_over_icon(const TreeElement *te, float view_co_x)
void OUTLINER_OT_lib_relocate(struct wmOperatorType *ot)
TreeTraversalAction(* TreeTraversalFunc)(struct TreeElement *te, void *customdata)
TreeElement * outliner_find_tse(struct SpaceOutliner *space_outliner, const TreeStoreElem *tse)
void outliner_collection_delete(struct bContext *C, struct Main *bmain, struct Scene *scene, struct ReportList *reports, bool hierarchy)
TreeElement * outliner_find_parent_element(ListBase *lb, TreeElement *parent_te, const TreeElement *child_te)
struct ID * outliner_search_back(TreeElement *te, short idcode)
void OUTLINER_OT_item_activate(struct wmOperatorType *ot)
TreeTraversalAction
@ TRAVERSE_SKIP_CHILDS
@ TRAVERSE_BREAK
@ TRAVERSE_CONTINUE
struct TreeElementIcon TreeElementIcon
bool outliner_is_co_within_mode_column(SpaceOutliner *space_outliner, const float view_mval[2])
void outliner_set_coordinates(struct ARegion *region, struct SpaceOutliner *space_outliner)
void outliner_operatortypes(void)
Definition: outliner_ops.c:32
void OUTLINER_OT_material_drop(struct wmOperatorType *ot)
eOLDrawState tree_element_type_active_state_get(const struct bContext *C, const struct TreeViewContext *tvc, const TreeElement *te, const TreeStoreElem *tselem)
void OUTLINER_OT_collection_hide_inside(struct wmOperatorType *ot)
void OUTLINER_OT_id_copy(struct wmOperatorType *ot)
void OUTLINER_OT_drivers_add_selected(struct wmOperatorType *ot)
TreeElement * outliner_find_item_at_x_in_row(const SpaceOutliner *space_outliner, TreeElement *parent_te, float view_co_x, bool *r_is_merged_icon, bool *r_is_over_icon)
TreeTraversalAction outliner_find_selected_collections(struct TreeElement *te, void *customdata)
void OUTLINER_OT_collection_objects_deselect(struct wmOperatorType *ot)
void OUTLINER_OT_collection_new(struct wmOperatorType *ot)
void outliner_tag_redraw_avoid_rebuild_on_open_change(const struct SpaceOutliner *space_outliner, struct ARegion *region)
void lib_relocate_fn(struct bContext *C, struct ReportList *reports, struct Scene *scene, struct TreeElement *te, struct TreeStoreElem *tsep, struct TreeStoreElem *tselem, void *user_data)
bool outliner_flag_set(ListBase *lb, short flag, short set)
void merged_element_search_menu_invoke(struct bContext *C, TreeElement *parent_te, TreeElement *activate_te)
void OUTLINER_OT_collection_objects_select(struct wmOperatorType *ot)
Definition: DNA_ID.h:273
short flag
Definition: DNA_ID.h:288
struct ListBase selected_array
Definition: BKE_main.h:116
struct GHash * treehash
struct TreeDisplay * tree_display
struct ID * drag_id
struct ID * drag_parent
struct TreeElement * parent
ListBase subtree
struct TreeElementType * type
TreeStoreElem * store_elem
void * directdata
struct TreeElement * prev
PointerRNA rnaptr
const char * name
struct TreeElement * next
struct Scene * scene
struct ViewLayer * view_layer
struct TreeDisplay TreeDisplay
Definition: tree_display.h:34
struct TreeElementType TreeElementType
Definition: tree_element.h:36
wmOperatorType * ot
Definition: wm_files.c:3156