diff options
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_intern.hh')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_intern.hh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_intern.hh b/source/blender/editors/space_outliner/outliner_intern.hh index 7a45531c608..b9ffea7c735 100644 --- a/source/blender/editors/space_outliner/outliner_intern.hh +++ b/source/blender/editors/space_outliner/outliner_intern.hh @@ -33,6 +33,7 @@ struct ViewLayer; struct bContext; struct bContextDataResult; struct bPoseChannel; +struct View2D; struct wmKeyConfig; struct wmOperatorType; @@ -642,10 +643,16 @@ float outliner_restrict_columns_width(const struct SpaceOutliner *space_outliner */ TreeElement *outliner_find_element_with_flag(const ListBase *lb, short flag); /** - * Find if element is visible in the outliner tree. + * Find if element is visible in the outliner tree, i.e. if all of its parents are expanded. + * Doesn't check if the item is in view-bounds, for that use #outliner_is_element_in_view(). */ bool outliner_is_element_visible(const TreeElement *te); /** + * Check if the element is displayed within the view bounds. Doesn't check if all parents are + * open/uncollapsed. + */ +bool outliner_is_element_in_view(const TreeElement *te, const struct View2D *v2d); +/** * Scroll view vertically while keeping within total bounds. */ void outliner_scroll_view(struct SpaceOutliner *space_outliner, |