|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| Context & MayaFlux::Portal::Forma::Context::wire_drag | ( | uint32_t | id, |
| std::function< void(glm::vec2)> | sink, | ||
| IO::MouseButtons | btn = IO::MouseButtons::Left |
||
| ) |
Register a drag handler receiving only the cursor position.
Thin composition over on_drag for callers that already know the element id and have no use for it in the callback. The sink performs whatever mapping and write the gesture implies.
| id | Element id. |
| sink | Called with the current NDC cursor position on each drag event. |
| btn | Mouse button that must be held. |
Definition at line 173 of file Context.cpp.
References on_drag().
Referenced by MayaFlux::Portal::Forma::Geometry::wire_drag().
Here is the call graph for this function:
Here is the caller graph for this function: