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

Function GetKeyOwnerData

tutorials/common/imgui/imgui_internal.h:2905–2905  ·  view source on GitHub ↗

Test that key is either not owned, either owned by 'owner_id'

Source from the content-addressed store, hash-verified

2903 IMGUI_API void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags = 0); // Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) { SetKeyOwner(key, GetItemID());'.
2904 IMGUI_API bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id); // Test that key is either not owned, either owned by 'owner_id'
2905 inline ImGuiKeyOwnerData* GetKeyOwnerData(ImGuiKey key) { if (key & ImGuiMod_Mask_) key = ConvertSingleModFlagToKey(key); IM_ASSERT(IsNamedKey(key)); return &GImGui->KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; }
2906
2907 // [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
2908 // - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.

Callers 5

UpdateKeyRoutingTableFunction · 0.85
GetKeyOwnerMethod · 0.85
TestKeyOwnerMethod · 0.85
SetKeyOwnerMethod · 0.85
ShowMetricsWindowMethod · 0.85

Calls 2

IsNamedKeyFunction · 0.85

Tested by 1

TestKeyOwnerMethod · 0.68