MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Prompt.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
namespace  MayaFlux::Portal::Forma::internal

Typedefs

using MayaFlux::Portal::Forma::AskCallback = std::function<void(std::optional<std::string>)>
 Receives the accepted text, or nullopt when the prompt was cancelled or closed.
using MayaFlux::Portal::Forma::AskValidator = std::function<bool(std::string_view)>
 Decides whether a text may be accepted.

Functions

void MayaFlux::Portal::Forma::ask (std::string title, std::string initial, AskCallback callback)
 ask() with no validator.
void MayaFlux::Portal::Forma::ask (std::string title, std::string initial, AskValidator validator, AskCallback callback)
 Open a one line text prompt and report what the user typed.
std::function< void()> MayaFlux::Portal::Forma::internal::ask_in (Surface &surface, FormaTarget target, uint32_t row_px, std::string initial, AskValidator validator, AskCallback callback)
 The prompt itself, placed on a surface that already exists.