Blender V4.3
blender::ed::outliner::TreeElementRNAArrayElement Class Reference

#include <tree_element_rna.hh>

Inherits blender::ed::outliner::TreeElementRNACommon.

Public Member Functions

 TreeElementRNAArrayElement (TreeElement &legacy_te, PointerRNA &rna_ptr, int index)
 
PropertyRNAget_property_rna () const override
 
- Public Member Functions inherited from blender::ed::outliner::TreeElementRNACommon
 TreeElementRNACommon (TreeElement &legacy_te, PointerRNA &rna_ptr)
 
bool expand_poll (const SpaceOutliner &) const override
 
const PointerRNAget_pointer_rna () const
 
bool is_rna_valid () const
 
- Public Member Functions inherited from blender::ed::outliner::AbstractTreeElement
virtual ~AbstractTreeElement ()=default
 
TreeElementget_legacy_element ()
 
virtual StringRefNull get_warning () const
 
virtual std::optional< BIFIconIDget_icon () const
 
void print_path ()
 

Additional Inherited Members

- Static Public Member Functions inherited from blender::ed::outliner::AbstractTreeElement
static std::unique_ptr< AbstractTreeElementcreate_from_type (int type, TreeElement &legacy_te, ID *owner_id, void *create_data)
 
static void uncollapse_by_default (TreeElement *legacy_te)
 
- Protected Member Functions inherited from blender::ed::outliner::AbstractTreeElement
 AbstractTreeElement (TreeElement &legacy_te)
 
virtual void expand (SpaceOutliner &) const
 
TreeElementadd_element (ListBase *lb, ID *owner_id, void *create_data, TreeElement *parent, short type, short index, const bool expand=true) const
 
- Protected Attributes inherited from blender::ed::outliner::TreeElementRNACommon
PointerRNA rna_ptr_
 
- Protected Attributes inherited from blender::ed::outliner::AbstractTreeElement
TreeElementlegacy_te_
 
AbstractTreeDisplaydisplay_
 
- Static Protected Attributes inherited from blender::ed::outliner::TreeElementRNACommon
static constexpr int max_index = std::numeric_limits<short>::max()
 

Detailed Description

Definition at line 66 of file tree_element_rna.hh.

Constructor & Destructor Documentation

◆ TreeElementRNAArrayElement()

Member Function Documentation

◆ get_property_rna()

PropertyRNA * blender::ed::outliner::TreeElementRNAArrayElement::get_property_rna ( ) const
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 239 of file tree_element_rna.cc.

References blender::ed::outliner::TreeElementRNAProperty::get_property_rna(), blender::ed::outliner::AbstractTreeElement::legacy_te_, blender::ed::outliner::TreeElement::parent, and blender::ed::outliner::tree_element_cast().

Referenced by TreeElementRNAArrayElement().


The documentation for this class was generated from the following files: