summaryrefslogtreecommitdiff
path: root/FL/Fl_Tree_Item.H
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2024-07-17 10:20:39 -0700
committerGreg Ercolano <erco@seriss.com>2024-07-17 10:20:39 -0700
commitf950b93e9c458bea552cba789c8af36f82231d87 (patch)
treec6faaf3c12a24502809408226270fef85f6c8e60 /FL/Fl_Tree_Item.H
parent741d58757b0acb3d9052d8a8e72af21a9cefee74 (diff)
Added is_visible_r() for consistency w/is_visible()
Diffstat (limited to 'FL/Fl_Tree_Item.H')
-rw-r--r--FL/Fl_Tree_Item.H11
1 files changed, 10 insertions, 1 deletions
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.