SetItemKeyOwner

Inputs Utilities: Key/Input Ownership BETA One common use case would be to allow your items to disable standard inputs behaviors such as Tab or Alt key handling, Mouse Wheel scrolling, etc. e.g. Button(...); if (SetItemKeyOwner(ImGuiKey_MouseWheelY)) { ... } to make hovering/activating a button disable wheel for scrolling. Reminder ImGuiKey enum include access to mouse buttons and gamepad, so key ownership can apply to them. The return value of SetItemKeyOwner() says if ownership has been requested for the item, which is a shortcut to calling yet nonpublic TestKeyOwner() function. Many related features are still in imgui_internal.h. For instance, most IsKeyXXX()/IsMouseXXX() functions have an owneridaware version.

pure @nogc nothrow @trusted
bool
SetItemKeyOwner
(
ImGuiKey key
)

Meta