|
Toast Engine
|
Routes inline on*="Fn()" handlers to node methods and Lua scripts. More...
#include <string>#include <string_view>
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. | |
Routes inline on*="Fn()" handlers to node methods and Lua scripts.
| 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()">