Blender
V3.3
|
#include <tree_element_rna.hh>
Public Member Functions | |
TreeElementRNAProperty (TreeElement &legacy_te, PointerRNA &rna_ptr, int index) | |
void | expand (SpaceOutliner &space_outliner) const override |
PropertyRNA * | getPropertyRNA () const override |
![]() | |
TreeElementRNACommon (TreeElement &legacy_te, PointerRNA &rna_ptr) | |
bool | isExpandValid () const override |
bool | expandPoll (const SpaceOutliner &) const override |
const PointerRNA & | getPointerRNA () const |
bool | isRNAValid () const |
![]() | |
virtual | ~AbstractTreeElement ()=default |
TreeElement & | getLegacyElement () |
virtual StringRefNull | getWarning () const |
virtual std::optional< BIFIconID > | getIcon () const |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< AbstractTreeElement > | createFromType (int type, TreeElement &legacy_te, void *idv) |
static void | uncollapse_by_default (TreeElement *legacy_te) |
![]() | |
AbstractTreeElement (TreeElement &legacy_te) | |
![]() | |
PointerRNA | rna_ptr_ |
![]() | |
TreeElement & | legacy_te_ |
![]() | |
constexpr static int | max_index = std::numeric_limits<short>::max() |
Definition at line 52 of file tree_element_rna.hh.
blender::ed::outliner::TreeElementRNAProperty::TreeElementRNAProperty | ( | TreeElement & | legacy_te, |
PointerRNA & | rna_ptr, | ||
int | index | ||
) |
Definition at line 134 of file tree_element_rna.cc.
References BLI_assert, PointerRNA::data, blender::ed::outliner::TreeElementRNACommon::isRNAValid(), blender::ed::outliner::AbstractTreeElement::legacy_te_, TreeElement::name, RNA_property_collection_lookup_int(), RNA_property_ui_name(), RNA_struct_iterator_property(), TreeElement::store_elem, TSE_RNA_PROPERTY, TreeStoreElem::type, and PointerRNA::type.
|
overridevirtual |
Let the type add its own children.
Reimplemented from blender::ed::outliner::AbstractTreeElement.
Definition at line 155 of file tree_element_rna.cc.
References BLI_strcasecmp(), CLAMP_MAX, PointerRNA::data, ELEM, TreeElement::flag, TreeStoreElem::flag, blender::ed::outliner::AbstractTreeElement::legacy_te_, blender::ed::outliner::TreeElementRNACommon::max_index, TreeElement::name, blender::ed::outliner::outliner_add_element(), PROP_BOOLEAN, PROP_COLLECTION, PROP_FLOAT, PROP_INT, PROP_POINTER, RNA_property_array_length(), RNA_property_collection_length(), RNA_property_collection_lookup_int(), RNA_property_pointer_get(), RNA_property_type(), blender::ed::outliner::TreeElementRNACommon::rna_ptr_, SEARCHING_OUTLINER, TreeElement::subtree, TE_PRETEND_HAS_CHILDREN, TREESTORE, TSE_CHILDSEARCH, TSE_RNA_ARRAY_ELEM, TSE_RNA_STRUCT, and TSELEM_OPEN.
|
overridevirtual |
If this element represents a property or is part of a property (array element), this returns the property. Otherwise nullptr.
Reimplemented from blender::ed::outliner::TreeElementRNACommon.
Definition at line 215 of file tree_element_rna.cc.
Referenced by blender::ed::outliner::TreeElementRNAStruct::expand(), and blender::ed::outliner::TreeElementRNAArrayElement::getPropertyRNA().