mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
38
Brutal.ImGui/Generated/PInvoke/SetItemKeyOwner.gen.cs
Normal file
38
Brutal.ImGui/Generated/PInvoke/SetItemKeyOwner.gen.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public partial class ImGui
|
||||
{
|
||||
public unsafe partial class PInvoke
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Set key owner to last item ID if it is hovered or active. Equivalent to 'if (IsItemHovered() ||
|
||||
/// IsItemActive()) { SetKeyOwner(key, GetItemID());'.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1113">imgui.h:1113</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11061">imgui.cpp:11061</see>
|
||||
/// <br/><c>void SetItemKeyOwner(ImGuiKey key)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("imgui")]
|
||||
public static unsafe partial void SetItemKeyOwner(ImGuiKey key);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue