From f950b93e9c458bea552cba789c8af36f82231d87 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Wed, 17 Jul 2024 10:20:39 -0700 Subject: Added is_visible_r() for consistency w/is_visible() --- FL/Fl_Tree_Item.H | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Fl_Tree_Item.H b/FL/Fl_Tree_Item.H index d0e68d4e7..b76395334 100644 --- a/FL/Fl_Tree_Item.H +++ b/FL/Fl_Tree_Item.H @@ -392,7 +392,16 @@ public: int is_visible() const { return(is_flag(VISIBLE)); } - int visible_r() const; + /// See if item and all its parents are open() and visible(). + /// Alias for is_visible_r(). + /// \returns + /// 1 -- item and its parents are open() and visible() + /// 0 -- item (or one of its parents) are not visible or close()ed. + /// + int visible_r() const { + return(is_visible_r()); + } + int is_visible_r() const; /// Set the item's user icon to an Fl_Image. Use '0' to disable. /// No internal copy is made, caller must manage icon's memory. -- cgit v1.2.3