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

◆ handle_text()

void MayaFlux::Portal::Forma::Context::handle_text ( uint32_t  codepoint)
private

Definition at line 524 of file Context.cpp.

525{
526 sync_size();
527 if (!m_focused)
528 return;
529
530 auto it = m_callbacks.find(*m_focused);
531 if (it == m_callbacks.end() || !it->second.text)
532 return;
533
534 it->second.text(*m_focused, codepoint);
535}
void sync_size()
Run the resize callbacks if the window's size differs from the size they last saw.
Definition Context.cpp:537
std::unordered_map< uint32_t, ElementCallbacks > m_callbacks
Definition Context.hpp:361
std::optional< uint32_t > m_focused
Definition Context.hpp:383

References m_callbacks, m_focused, and sync_size().

Referenced by register_handlers().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: