MCPcopy Create free account
hub / github.com/RenderKit/embree / GetRoutingIdFromOwnerId

Function GetRoutingIdFromOwnerId

tutorials/common/imgui/imgui.cpp:8021–8025  ·  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

8019
8020// owner_id may be None/Any, but routing_id needs to be always be set, so we default to GetCurrentFocusScope().
8021static inline ImGuiID GetRoutingIdFromOwnerId(ImGuiID owner_id)
8022{
8023 ImGuiContext& g = *GImGui;
8024 return (owner_id != ImGuiKeyOwner_None && owner_id != ImGuiKeyOwner_Any) ? owner_id : g.CurrentFocusScopeId;
8025}
8026
8027ImGuiKeyRoutingData* ImGui::GetShortcutRoutingData(ImGuiKeyChord key_chord)
8028{

Callers 2

SetShortcutRoutingMethod · 0.85
TestShortcutRoutingMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestShortcutRoutingMethod · 0.68