Blender V5.3
DNA_outliner_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_enum_flags.hh"
12#include "DNA_defs.h"
13
14namespace blender {
15
16struct ID;
17
19enum eTreeStoreElem_Flag : short {
20 TSE_CLOSED = (1 << 0),
21 TSE_SELECTED = (1 << 1),
22 TSE_TEXTBUT = (1 << 2),
23 TSE_CHILDSEARCH = (1 << 3),
24 TSE_SEARCHMATCH = (1 << 4),
25 TSE_HIGHLIGHTED = (1 << 5),
26 TSE_DRAG_INTO = (1 << 6),
27 TSE_DRAG_BEFORE = (1 << 7),
28 TSE_DRAG_AFTER = (1 << 8),
29 /* Needed because outliner-only elements can be active */
30 TSE_ACTIVE = (1 << 9),
31 /* TSE_ACTIVE_WALK = (1 << 10), */ /* Unused */
35};
37
38
39enum eTreeStoreElemType : short {
49
50 TSE_NLA = 1, /* NO ID */
61 /* TSE_SCRIPT_BASE = 12, */ /* UNUSED */
65 TSE_DRIVER_BASE = 16, /* NO ID */
66 /* TSE_DRIVER = 17, */ /* UNUSED */
67
68 /* TSE_PROXY = 18, */ /* UNUSED */
71 /* TSE_R_PASS = 21, */ /* UNUSED */
72 /* TSE_LINKED_MAT = 22, */
73 /* NOTE: is used for light group. */
74 /* TSE_LINKED_LAMP = 23, */
77 TSE_STRIP = 26, /* NO ID */
78 TSE_STRIP_DATA = 27, /* NO ID */
79 TSE_STRIP_DUP = 28, /* NO ID */
81 TSE_RNA_STRUCT = 30, /* NO ID */
82 TSE_RNA_PROPERTY = 31, /* NO ID */
83 TSE_RNA_ARRAY_ELEM = 32, /* NO ID */
84 TSE_NLA_TRACK = 33, /* NO ID */
85 /* TSE_KEYMAP = 34, */ /* UNUSED */
86 /* TSE_KEYMAP_ITEM = 35, */ /* UNUSED */
87 TSE_ID_BASE = 36, /* NO ID */
88 TSE_GP_LAYER = 37, /* NO ID */
98 TSE_GENERIC_LABEL = 47, /* No ID */
104};
105
107#define TSE_IS_REAL_ID(_tse) \
108 (!ELEM((_tse)->type, \
109 TSE_NLA, \
110 TSE_NLA_TRACK, \
111 TSE_DRIVER_BASE, \
112 TSE_STRIP, \
113 TSE_STRIP_DATA, \
114 TSE_STRIP_DUP, \
115 TSE_RNA_STRUCT, \
116 TSE_RNA_PROPERTY, \
117 TSE_RNA_ARRAY_ELEM, \
118 TSE_ID_BASE, \
119 TSE_GP_LAYER, \
120 TSE_GENERIC_LABEL))
121
124 short nr = 0;
126 short used = 0;
127
128 /* XXX We actually also store non-ID data in this pointer for identifying
129 * the #TreeStoreElem for a #TreeElement when rebuilding the tree. Ugly! */
130 struct ID *id = nullptr;
131};
132
134struct TreeStore {
138 int usedelem = 0;
143 TreeStoreElem *data = nullptr;
144};
145
146} // namespace blender
#define ENUM_OPERATORS(_enum_type)
#define DNA_DEPRECATED
Definition DNA_defs.h:21
BMesh Iterators.
@ TSE_LIBRARY_OVERRIDE_BASE
@ TSE_SCENE_COLLECTION_BASE
@ TSE_LIBRARY_OVERRIDE_OPERATION
eTreeStoreElem_Flag flag
DNA_DEPRECATED int totelem