diff options
Diffstat (limited to 'src/Fl_Tree.cxx')
| -rw-r--r-- | src/Fl_Tree.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_Tree.cxx b/src/Fl_Tree.cxx index 48eca8460..e1ab1baf0 100644 --- a/src/Fl_Tree.cxx +++ b/src/Fl_Tree.cxx @@ -554,7 +554,7 @@ Fl_Tree_Item* Fl_Tree::add(const char *path) { return(item); } -/// Add a new child to a tree-item. +/// Add a new child to a specific item in the tree. /// /// \param[in] item The existing item to add new child to. Must not be NULL. /// \param[in] name The label for the new item @@ -1724,6 +1724,9 @@ Fl_Tree_Item_Draw_Mode Fl_Tree::item_draw_mode() const { void Fl_Tree::item_draw_mode(Fl_Tree_Item_Draw_Mode val) { _prefs.item_draw_mode(val); } +void Fl_Tree::item_draw_mode(int val) { + _prefs.item_draw_mode(Fl_Tree_Item_Draw_Mode(val)); +} #endif /// See if \p item is currently displayed on-screen (visible within the widget). |
