MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Picker.hpp File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Portal
 
namespace  MayaFlux::Portal::Forma
 

Typedefs

using MayaFlux::Portal::Forma::PickCallback = std::function< void(std::optional< size_t >)>
 Receives the chosen index, or nullopt when the window was closed without a choice.
 

Functions

void MayaFlux::Portal::Forma::pick (std::string title, std::vector< std::string > labels, PickCallback callback)
 Open a window of clickable rows, one per label, and report the choice.
 
template<typename T >
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.