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

◆ follow_move()

auto MayaFlux::Portal::Forma::Geometry::follow_move ( )
inline

Produce a Form::wire that writes the cursor position on hover.

No button held. For geometry whose value is an NDC position rather than a normalized parameter.

Definition at line 112 of file FormFactory.hpp.

113{
114 return [](Context& ctx, uint32_t id, std::shared_ptr<MappedState<glm::vec2>> state) {
115 ctx.on_move(id, [state = std::move(state)](uint32_t, glm::vec2 ndc) {
116 state->write(ndc);
117 });
118 };
119}
void on_move(uint32_t id, MoveFn fn)
Called each move event while the cursor is over an element.
Definition Context.cpp:48
Event wiring between a Layer and a window surface.
Definition Context.hpp:41

References MayaFlux::Portal::Forma::Context::on_move().

Referenced by crosshair(), and point().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: