MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ fixed_interaction()

template<typename T>
InteractionProvider< T > MayaFlux::Portal::Forma::fixed_interaction ( InteractionFn< T > interaction)
nodiscard

Provider for an interaction that needs nothing from the placement.

Definition at line 106 of file Interaction.hpp.

107{
108 return [interaction = std::move(interaction)](const InteractionSource&, std::string&)
109 -> std::optional<InteractionFn<T>> { return interaction; };
110}
typename Geometry::Form< T >::Wire InteractionFn
The interaction registration of a Form, run once after its element exists.
What an interaction provider may use: the placement bounds, when there are any.