Toast Engine
Loading...
Searching...
No Matches
ui_event_listener.hpp File Reference

Routes inline on*="Fn()" handlers to node methods and Lua scripts. More...

#include <string>
#include <string_view>
Include dependency graph for ui_event_listener.hpp:

Go to the source code of this file.

Functions

auto ui::parseCallName (std::string_view value) -> std::string
void ui::dispatchNodeCall (Rml::Context *context, std::string_view method)
 Dispatches a UI event to the owning panel node's call<void>(method).
void ui::installEventListenerInstancer ()
 Registers the global event listener instancer with the RmlUi factory.

Detailed Description

Routes inline on*="Fn()" handlers to node methods and Lua scripts.

Author
Xein
Date
18 Jul 2026

Function Documentation

◆ dispatchNodeCall()

void ui::dispatchNodeCall ( Rml::Context * context,
std::string_view method )

Dispatches a UI event to the owning panel node's call<void>(method).

Hits reflected C++ methods and attached Lua script with zero glue, so function N:AcceptButton() in a panel script fires from the element <button onclick="AcceptButton()">