MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / triggerEventCallbacks

Method triggerEventCallbacks

forms/control.cpp:1171–1177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1169}
1170
1171void Control::triggerEventCallbacks(FormsEvent *e)
1172{
1173 for (auto &callback : this->callbacks[e->forms().EventFlag])
1174 {
1175 callback(e);
1176 }
1177}
1178
1179void Control::addCallback(FormEventType event, std::function<void(FormsEvent *e)> callback)
1180{

Callers 2

pushFormEventMethod · 0.95
clickMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected