MCPcopy Create free account
hub / github.com/cinder/Cinder / GetKeyOwnerData

Function GetKeyOwnerData

include/imgui/imgui_internal.h:3373–3373  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 5

UpdateKeyRoutingTableMethod · 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