MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / SetKeyOwnersForKeyChord

Method SetKeyOwnersForKeyChord

include/imgui/imgui.cpp:10634–10641  ·  view source on GitHub ↗

Rarely used helper

Source from the content-addressed store, hash-verified

10632
10633// Rarely used helper
10634void ImGui::SetKeyOwnersForKeyChord(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags)
10635{
10636 if (key_chord & ImGuiMod_Ctrl) { SetKeyOwner(ImGuiMod_Ctrl, owner_id, flags); }
10637 if (key_chord & ImGuiMod_Shift) { SetKeyOwner(ImGuiMod_Shift, owner_id, flags); }
10638 if (key_chord & ImGuiMod_Alt) { SetKeyOwner(ImGuiMod_Alt, owner_id, flags); }
10639 if (key_chord & ImGuiMod_Super) { SetKeyOwner(ImGuiMod_Super, owner_id, flags); }
10640 if (key_chord & ~ImGuiMod_Mask_) { SetKeyOwner((ImGuiKey)(key_chord & ~ImGuiMod_Mask_), owner_id, flags); }
10641}
10642
10643// This is more or less equivalent to:
10644// if (IsItemHovered() || IsItemActive())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected