MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Portal::Forma::Detail Namespace Reference

Classes

struct  ActionBinding
 An action prepared for one event of one instance: the filter to subscribe with, and the action a host registered, already decoded. More...
class  DocumentWalk
struct  FormState
struct  FormState< Geometry::Form< T > >
struct  FunctionTraits
struct  FunctionTraits< R(*)(A...) noexcept >
struct  FunctionTraits< R(*)(A...)>
struct  LayerAttributes
 The document's own attributes on an instance, all beginning with the reserved prefix. More...

Functions

template<auto Function, typename Source, typename Access>
std::optional< typename FunctionTraits< decltype(Function)>::Result > call_described (const Source &call, std::string &error)
 Calls a described function with the arguments an element's attributes give by parameter name.
template<auto Function, typename Source, typename Access, size_t Index, typename Values>
bool decode_parameter (const Source &call, Values &values, std::array< bool, std::tuple_size_v< Values > > &given, std::string &error)
template<typename Placer, typename State>
Placer form_placer (Geometry::Form< State > form, State initial)
 A Placer that places a form with an initial state on a Surface and returns its element id.
template<typename Source, typename Access>
bool hit_fail (const Source &at, const std::string &message, std::string &error)
template<typename Source, typename Access>
std::optional< PlacedInstances > instantiate (const FactoryTable< Source, Access > &table, const ActionTable< Source, Access > *actions, const CallTable< Source, Access > *calls, const Source &root, SurfaceMap &surfaces, std::string &error)
template<typename Source, typename Access>
bool only_hit_attributes (const Source &node, std::initializer_list< std::string_view > allowed, std::string &error)
template<typename Source, typename Access, typename T>
bool read_hit_attribute (const Source &node, std::string_view name, T &value, std::string &error)
template<typename Source, typename Access>
std::optional< std::function< bool(glm::vec2)> > read_region (const Source &node, std::string &error)