MayaFlux 0.5.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 111 of file FormFactory.hpp.

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

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: