diff options
| -rw-r--r-- | FL/Fl_Tree.H | 6 | ||||
| -rw-r--r-- | src/Fl_Tree_Item.cxx | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/FL/Fl_Tree.H b/FL/Fl_Tree.H index 46a104db5..119662887 100644 --- a/FL/Fl_Tree.H +++ b/FL/Fl_Tree.H @@ -89,6 +89,12 @@ /// positioned on the screen with show_item_top(), show_item_middle() and /// show_item_bottom(),<BR> /// item children can be swapped around with Fl_Tree_Item::swap_children(),<BR> +/// items can be moved around with Fl_Tree_Item::move(),<BR> +/// an item's children can be walked with Fl_Tree_Item::first() and Fl_Tree_Item::next(), +/// an item's children can be indexed directly with Fl_Tree_Item::child() +/// and Fl_Tree_Item::children(),<BR> +/// items can be moved from one subtree to another with Fl_Tree_Item::deparent() +/// and Fl_Tree_Item::reparent(),<BR> /// sorting can be controlled when items are add()ed via sortorder().<BR> /// You can walk the entire tree with first() and next().<BR> /// You can walk visible items with first_visible_item() diff --git a/src/Fl_Tree_Item.cxx b/src/Fl_Tree_Item.cxx index 9b0239617..2b3e3602a 100644 --- a/src/Fl_Tree_Item.cxx +++ b/src/Fl_Tree_Item.cxx @@ -454,6 +454,7 @@ int Fl_Tree_Item::reparent(Fl_Tree_Item *newchild, int pos) { /// - 0: Success /// - -1: range error (e.g. if \p 'to' or \p 'from' out of range). /// - (Other return values reserved for future use) +/// \see move_above(), move_below(), move_into(), move(Fl_Tree_Item*,int,int) /// int Fl_Tree_Item::move(int to, int from) { return _children.move(to, from); @@ -475,6 +476,8 @@ int Fl_Tree_Item::move(int to, int from) { /// - -6: could not reparent at \p 'pos' /// - (Other return values reserved for future use.) /// +/// \see move_above(), move_below(), move_into(), move(int,int) +/// int Fl_Tree_Item::move(Fl_Tree_Item *item, int op, int pos) { Fl_Tree_Item *from_parent, *to_parent; int from, to; @@ -529,6 +532,8 @@ int Fl_Tree_Item::move(Fl_Tree_Item *item, int op, int pos) { /// On error returns a negative value; /// see move(Fl_Tree_Item*,int,int) for possible error codes. /// +/// \see move_below(), move_into(), move(int,int), move(Fl_Tree_Item*,int,int) +/// int Fl_Tree_Item::move_above(Fl_Tree_Item *item) { return move(item, 0, 0); } @@ -540,6 +545,8 @@ int Fl_Tree_Item::move_above(Fl_Tree_Item *item) { /// On error returns a negative value; /// see move(Fl_Tree_Item*,int,int) for possible error codes. /// +/// \see move_above(), move_into(), move(int,int), move(Fl_Tree_Item*,int,int) +/// int Fl_Tree_Item::move_below(Fl_Tree_Item *item) { return move(item, 1, 0); } @@ -551,6 +558,8 @@ int Fl_Tree_Item::move_below(Fl_Tree_Item *item) { /// On error returns a negative value; /// see move(Fl_Tree_Item*,int,int) for possible error codes. /// +/// \see move_above(), move_below(), move(int,int), move(Fl_Tree_Item*,int,int) +/// int Fl_Tree_Item::move_into(Fl_Tree_Item *item, int pos) { return move(item, 2, pos); } |
