MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GetRoutingIdFromOwnerId

Function GetRoutingIdFromOwnerId

KBotExt/imgui/imgui.cpp:8069–8073  ·  view source on GitHub ↗

owner_id may be None/Any, but routing_id needs to be always be set, so we default to GetCurrentFocusScope().

Source from the content-addressed store, hash-verified

8067
8068// owner_id may be None/Any, but routing_id needs to be always be set, so we default to GetCurrentFocusScope().
8069static inline ImGuiID GetRoutingIdFromOwnerId(ImGuiID owner_id)
8070{
8071 ImGuiContext& g = *GImGui;
8072 return (owner_id != ImGuiKeyOwner_None && owner_id != ImGuiKeyOwner_Any) ? owner_id : g.CurrentFocusScopeId;
8073}
8074
8075ImGuiKeyRoutingData* ImGui::GetShortcutRoutingData(ImGuiKeyChord key_chord)
8076{

Callers 2

SetShortcutRoutingMethod · 0.85
TestShortcutRoutingMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestShortcutRoutingMethod · 0.68