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

◆ on_press() [2/2]

void MayaFlux::Portal::Forma::Context::on_press ( uint32_t  id,
IO::MouseButtons  btn,
PressFn  fn 
)

Called when a mouse button is pressed over an element.

Parameters
idElement id to bind to.
btnMouse button.
fnCallback receiving element id and NDC press position.

Definition at line 33 of file Context.cpp.

34{
35 m_callbacks[id].press[static_cast<int>(btn)] = std::move(fn);
36}
std::unordered_map< uint32_t, ElementCallbacks > m_callbacks
Definition Context.hpp:269

References m_callbacks.

Referenced by MayaFlux::Portal::Forma::Collapsible::place(), and MayaFlux::Portal::Forma::Geometry::press_flip().

+ Here is the caller graph for this function: