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

Method SetKeyOwnersForKeyChord

include/imgui/imgui.cpp:10705–10712  ·  view source on GitHub ↗

Rarely used helper

Source from the content-addressed store, hash-verified

10703
10704// Rarely used helper
10705void ImGui::SetKeyOwnersForKeyChord(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags)
10706{
10707 if (key_chord & ImGuiMod_Ctrl) { SetKeyOwner(ImGuiMod_Ctrl, owner_id, flags); }
10708 if (key_chord & ImGuiMod_Shift) { SetKeyOwner(ImGuiMod_Shift, owner_id, flags); }
10709 if (key_chord & ImGuiMod_Alt) { SetKeyOwner(ImGuiMod_Alt, owner_id, flags); }
10710 if (key_chord & ImGuiMod_Super) { SetKeyOwner(ImGuiMod_Super, owner_id, flags); }
10711 if (key_chord & ~ImGuiMod_Mask_) { SetKeyOwner((ImGuiKey)(key_chord & ~ImGuiMod_Mask_), owner_id, flags); }
10712}
10713
10714// This is more or less equivalent to a fancier version of:
10715// if (IsItemHovered() || IsItemActive())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected