John Scipione 0a53cbb3b9 BMenu: Add SortItems(), SwapItems() and MoveItem()
... methods which call the respective methods in BList.

These convinience methods allow you to sort a menu of menu items
via a compare function, swap two menu items, or move a menu item
to a new index. Update items layout if menu is open.

Previously there was no easy way to rearrange menu items in a menu.

Change-Id: Ice3d6e5404e895196d8bd32d696dce7c55bd72d4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4296
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-10-22 08:12:05 +00:00
..
2017-07-31 19:09:38 +02:00
2016-01-04 06:48:22 -05:00
2016-01-04 06:48:22 -05:00
2015-12-26 20:13:22 -05:00
2016-01-04 06:48:22 -05:00
2016-01-04 06:48:22 -05:00
2016-01-04 06:48:22 -05:00
2018-11-04 19:00:49 +00:00
2020-03-23 01:30:23 +00:00
2017-05-08 22:17:53 +02:00
2020-02-04 23:06:54 +00:00
2016-01-04 06:48:22 -05:00
2016-01-04 06:48:22 -05:00
2016-01-04 06:48:22 -05:00
2016-01-04 06:48:22 -05:00
2015-09-05 16:09:33 +02:00
2016-01-04 06:48:22 -05:00
2020-03-23 01:30:23 +00:00
2016-03-22 12:00:36 -07:00
2016-01-04 06:48:22 -05:00
2016-01-04 06:48:22 -05:00
2016-01-04 06:48:22 -05:00
2021-06-20 14:46:53 +00:00