MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / PostEventRecursive

Function PostEventRecursive

NetStream/source/event.cpp:6–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "event.h"
5
6static void PostEventRecursive(ui::Widget *target, int32_t type, ui::Event *ev)
7{
8 for (int i = 0; i < target->GetChildrenNum(); i++)
9 {
10 ui::Widget *subtarget = target->GetChild(i);
11 if (subtarget)
12 {
13 PostEventRecursive(subtarget, type, ev);
14 }
15 }
16 target->DoEvent(type, ev);
17}
18
19void event::BroadcastGlobalEvent(Plugin *workPlugin, uint32_t type, int32_t d0, int32_t d1, int32_t d2, int32_t d3)
20{

Callers 1

BroadcastGlobalEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected