MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / CallContextHooks

Method CallContextHooks

include/imgui/imgui.cpp:4581–4587  ·  view source on GitHub ↗

Call context hooks (used by e.g. test engine) We assume a small number of hooks so all stored in same array

Source from the content-addressed store, hash-verified

4579// Call context hooks (used by e.g. test engine)
4580// We assume a small number of hooks so all stored in same array
4581void ImGui::CallContextHooks(ImGuiContext* ctx, ImGuiContextHookType hook_type)
4582{
4583 ImGuiContext& g = *ctx;
4584 for (ImGuiContextHook& hook : g.Hooks)
4585 if (hook.Type == hook_type)
4586 hook.Callback(&g, &hook);
4587}
4588
4589//-----------------------------------------------------------------------------
4590// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected