mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
188 lines
8.1 KiB
C#
188 lines
8.1 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi.Internal
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1583">imgui_internal.h:1583</see>
|
|
/// <br/><c>struct ImGuiKeyOwnerData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
|
|
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
|
|
/// </code>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 12)]
|
|
public partial struct ImGuiKeyOwnerData
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1585">imgui_internal.h:1585</see>
|
|
/// <br/><c>ImGuiID OwnerCurr</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
|
|
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public ImGuiID OwnerCurr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1586">imgui_internal.h:1586</see>
|
|
/// <br/><c>ImGuiID OwnerNext</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
|
|
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(4)]
|
|
public ImGuiID OwnerNext;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Reading this key requires explicit owner id (until end of frame). Set by ImGuiInputFlags_LockThisFrame.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1587">imgui_internal.h:1587</see>
|
|
/// <br/><c>bool LockThisFrame</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
|
|
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public Bool8 LockThisFrame;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Reading this key requires explicit owner id (until key is released). Set by
|
|
/// ImGuiInputFlags_LockUntilRelease. When this is true LockThisFrame is always true as well.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1588">imgui_internal.h:1588</see>
|
|
/// <br/><c>bool LockUntilRelease</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
|
|
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(9)]
|
|
public Bool8 LockUntilRelease;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1583">imgui_internal.h:1583</see>
|
|
/// <br/><c>struct ImGuiKeyOwnerData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
|
|
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
|
|
/// </code>
|
|
/// </remarks>
|
|
public unsafe partial struct ImGuiKeyOwnerDataPtr(ImGuiKeyOwnerData* ptr) : INullable
|
|
{
|
|
private ImGuiKeyOwnerData* _ptr = ptr;
|
|
public ImGuiKeyOwnerData* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImGuiKeyOwnerDataPtr(ImGuiKeyOwnerData* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImGuiKeyOwnerData*(ImGuiKeyOwnerDataPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1585">imgui_internal.h:1585</see>
|
|
/// <br/><c>ImGuiID OwnerCurr</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
|
|
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImGuiID OwnerCurr => ref Unsafe.AsRef<ImGuiID>(&_ptr->OwnerCurr);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1586">imgui_internal.h:1586</see>
|
|
/// <br/><c>ImGuiID OwnerNext</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
|
|
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImGuiID OwnerNext => ref Unsafe.AsRef<ImGuiID>(&_ptr->OwnerNext);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Reading this key requires explicit owner id (until end of frame). Set by ImGuiInputFlags_LockThisFrame.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1587">imgui_internal.h:1587</see>
|
|
/// <br/><c>bool LockThisFrame</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
|
|
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref bool LockThisFrame => ref Unsafe.AsRef<bool>(&_ptr->LockThisFrame);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Reading this key requires explicit owner id (until key is released). Set by
|
|
/// ImGuiInputFlags_LockUntilRelease. When this is true LockThisFrame is always true as well.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1588">imgui_internal.h:1588</see>
|
|
/// <br/><c>bool LockUntilRelease</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
|
|
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref bool LockUntilRelease => ref Unsafe.AsRef<bool>(&_ptr->LockUntilRelease);
|
|
}
|
|
}
|