Blender  V2.93
Typedefs | Functions
tree_element.h File Reference
#include "DNA_space_types.h"

Go to the source code of this file.

Typedefs

typedef struct TreeElementType TreeElementType
 

Functions

TreeElementTypeoutliner_tree_element_type_create (int type, TreeElement *legacy_te, void *idv)
 
void outliner_tree_element_type_free (TreeElementType **type)
 
void outliner_tree_element_type_expand (TreeElementType *type, SpaceOutliner *space_outliner)
 
bool outliner_tree_element_type_is_expand_valid (TreeElementType *type)
 
bool outliner_tree_element_type_expand_poll (TreeElementType *type, SpaceOutliner *space_outliner)
 
void outliner_tree_element_type_post_expand (TreeElementType *type, SpaceOutliner *space_outliner)
 

Detailed Description

C-API for the Tree-Element types. This API shouldn't stay for long. All tree building should eventually be done through C++ types, with more type safety and an easier to reason about design.

Definition in file tree_element.h.

Typedef Documentation

◆ TreeElementType

C alias for an #AbstractTreeElement handle.

Definition at line 1 of file tree_element.h.

Function Documentation

◆ outliner_tree_element_type_create()

TreeElementType* outliner_tree_element_type_create ( int  type,
TreeElement legacy_te,
void *  idv 
)

Definition at line 129 of file tree_element.cc.

References element, blender::ed::outliner::tree_element_create(), and type.

Referenced by outliner_add_element().

◆ outliner_tree_element_type_expand()

void outliner_tree_element_type_expand ( TreeElementType type,
SpaceOutliner space_outliner 
)

Definition at line 135 of file tree_element.cc.

References blender::ed::outliner::tree_element_expand(), and type.

Referenced by outliner_add_element().

◆ outliner_tree_element_type_expand_poll()

bool outliner_tree_element_type_expand_poll ( TreeElementType type,
SpaceOutliner space_outliner 
)

Definition at line 146 of file tree_element.cc.

References blender::ed::outliner::tree_element_expand_poll(), and type.

Referenced by outliner_add_element().

◆ outliner_tree_element_type_free()

void outliner_tree_element_type_free ( TreeElementType **  type)

Definition at line 157 of file tree_element.cc.

References blender::ed::outliner::tree_element_free(), and type.

Referenced by outliner_free_tree_element().

◆ outliner_tree_element_type_is_expand_valid()

bool outliner_tree_element_type_is_expand_valid ( TreeElementType type)

Definition at line 140 of file tree_element.cc.

References element, and type.

Referenced by outliner_add_element().

◆ outliner_tree_element_type_post_expand()

void outliner_tree_element_type_post_expand ( TreeElementType type,
SpaceOutliner space_outliner 
)

Definition at line 151 of file tree_element.cc.

References blender::ed::outliner::tree_element_post_expand_only(), and type.

Referenced by outliner_add_element().