|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Portal::Forma::pick | ( | std::string | title, |
| std::vector< T > | items, | ||
| std::type_identity_t< std::function< std::string(const T &)> > | label, | ||
| std::type_identity_t< std::function< void(std::optional< T >)> | , | ||
| callback | |||
| ) |
Typed form of pick: list items by label and receive the chosen item.
Same behaviour as pick. The callback receives a copy of the chosen item, or nullopt if the window was closed without a choice.
| T | Item type, deduced from items. |
| title | Window title. |
| items | Candidates, in display order. |
| label | Maps an item to its row caption. |
| callback | Invoked once with the chosen item or nullopt. |
Definition at line 41 of file Picker.hpp.
References callback, index, label, and pick().
Here is the call graph for this function: