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

◆ press_flip_interaction()

InteractionProvider< bool > MayaFlux::Portal::Forma::press_flip_interaction ( )
inlinenodiscard

Provider whose handler flips a bool on a left press.

Register it under any name.

Definition at line 135 of file Interaction.hpp.

136{
137 return [](const InteractionSource&, std::string&) -> std::optional<InteractionFn<bool>> {
139 };
140}
auto press_flip(IO::MouseButtons btn=IO::MouseButtons::Left)
Produce a Form::wire that registers a press flipping a bool state.
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.

References MayaFlux::Portal::Forma::Geometry::press_flip().

Here is the call graph for this function: