MayaFlux 0.4.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:252

References m_callbacks.

Referenced by MayaFlux::Portal::Forma::Collapsible::place().

+ Here is the caller graph for this function: