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

◆ on_text()

void MayaFlux::Portal::Forma::Context::on_text ( uint32_t  id,
TextFn  fn 
)

Called with each resolved Unicode codepoint while the element has keyboard focus.

Delivers composed text (shift, layout, dead-key/compose, IME already resolved by the backend), distinct from on_press/on_held's raw keycodes. Focus transfers on mouse press, same as the other keyboard callbacks.

Parameters
idElement id to bind to.
fnCallback receiving element id and the resolved codepoint.

Definition at line 121 of file Context.cpp.

122{
123 m_callbacks[id].text = std::move(fn);
124}
std::unordered_map< uint32_t, ElementCallbacks > m_callbacks
Definition Context.hpp:361

References m_callbacks.

Referenced by MayaFlux::Portal::Forma::TextField::wire().

+ Here is the caller graph for this function: