// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable namespace Brutal.ImGuiApi { public partial class ImGui { public unsafe partial class PInvoke { /// /// /// Set key owner to last item ID if it is hovered or active. Equivalent to 'if (IsItemHovered() || /// IsItemActive()) { SetKeyOwner(key, GetItemID());'. /// /// /// C++: /// imgui.h:1113 /// , /// imgui.cpp:11061 ///
void SetItemKeyOwner(ImGuiKey key) ///
///
/// /// /// 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(...); 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. /// - Many related features are still in imgui_internal.h. For instance, most IsKeyXXX()/IsMouseXXX() functions have an owner-id-aware version. /// /// [LibraryImport("imgui")] public static unsafe partial void SetItemKeyOwner(ImGuiKey key); } } }