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

Go to the source code of this file.

Classes

struct  MayaFlux::Portal::Forma::InteractionSource
 What an interaction provider may use: the placement bounds, when there are any. More...
class  MayaFlux::Portal::Forma::InteractionTable< T >
 Interaction providers for one state type, by name. More...

Namespaces

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

Typedefs

template<typename T>
using MayaFlux::Portal::Forma::InteractionFn = typename Geometry::Form<T>::Wire
 The interaction registration of a Form, run once after its element exists.
template<typename T>
using MayaFlux::Portal::Forma::InteractionProvider = std::function<std::optional<InteractionFn<T>>(const InteractionSource&, std::string&)>
 Produces the interaction of a Form of state type T, or nullopt with an error.

Functions

template<typename T>
InteractionProvider< T > MayaFlux::Portal::Forma::bounded_interaction (std::function< InteractionFn< T >(const Kinesis::AABB2D &)> make)
 Provider for an interaction made from the placement bounds.
template<typename T>
InteractionProvider< T > MayaFlux::Portal::Forma::fixed_interaction (InteractionFn< T > interaction)
 Provider for an interaction that needs nothing from the placement.
InteractionProvider< bool > MayaFlux::Portal::Forma::press_flip_interaction ()
 Provider whose handler flips a bool on a left press.