-
Notifications
You must be signed in to change notification settings - Fork 273
Closed
Description
So I have checked multiple examples but I haven't found any menu that would fully satisfy me.
My ideal menu element would:
- Have just 1 callback (
void (std::size_t index)). I may store arbitrary elements and getting the selected item index is the only reasonable way for the library to report it. - The menu would expose a standard container interface (eg vector, either by deriving from it or having
m.options()) so that one can add/remove option elements freely (this is much more flexible thanis_enabledoption functor). Adding things such asmenu_item_spacershould not change/shift indexes of reported selections. - There should be an access to the menu's label (eg
m.label())
Obviosuly I know that any arbitrary widget can be made through use of other library parts. This is just the thing that IMO is a good general use-case scenario to be in the API which is not overly complex at the same time.
Metadata
Metadata
Assignees
Labels
No labels