|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Portal::Forma::Geometry::wire_drag | ( | Context & | ctx, |
| uint32_t | id, | ||
| std::shared_ptr< MappedState< T > > | state, | ||
| std::function< T(glm::vec2)> | project, | ||
| IO::MouseButtons | btn = IO::MouseButtons::Left |
||
| ) |
Register a drag handler writing a projected cursor position to state.
The projection carries the geometry-specific mapping. Kinesis::Projection supplies the inverses matching the geometry functions above: axis_fraction for the faders, unit_square for position_picker, angle_fraction for radial, path_fraction for stroke_slider.
| ctx | Context owning the element's callbacks. |
| id | Element id returned from create_element. |
| state | MappedState written on each drag event. |
| project | NDC to value mapping. |
| btn | Mouse button that must be held. |
Definition at line 26 of file FormFactory.hpp.
References MayaFlux::Portal::Forma::Context::wire_drag().
Here is the call graph for this function: