| 4 | #include "event.h" |
| 5 | |
| 6 | static 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 | |
| 19 | void event::BroadcastGlobalEvent(Plugin *workPlugin, uint32_t type, int32_t d0, int32_t d1, int32_t d2, int32_t d3) |
| 20 | { |
no outgoing calls
no test coverage detected