mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
157 lines
6.6 KiB
C#
157 lines
6.6 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#L1571">imgui_internal.h:1571</see>
|
|
/// <br/><c>struct ImGuiKeyRoutingTable</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching.
|
|
/// Stored in main context (1 instance)
|
|
/// </code>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 344)]
|
|
public partial struct ImGuiKeyRoutingTable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Index of first entry in Entries[]
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1573">imgui_internal.h:1573</see>
|
|
/// <br/><c>ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching.
|
|
/// Stored in main context (1 instance)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public short_155 Index;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1574">imgui_internal.h:1574</see>
|
|
/// <br/><c>ImVector<ImGuiKeyRoutingData> Entries</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching.
|
|
/// Stored in main context (1 instance)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(312)]
|
|
public ImVector<ImGuiKeyRoutingData> Entries;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Double-buffer to avoid reallocation (could use a shared buffer)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1575">imgui_internal.h:1575</see>
|
|
/// <br/><c>ImVector<ImGuiKeyRoutingData> EntriesNext</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching.
|
|
/// Stored in main context (1 instance)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(328)]
|
|
public ImVector<ImGuiKeyRoutingData> EntriesNext;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1571">imgui_internal.h:1571</see>
|
|
/// <br/><c>struct ImGuiKeyRoutingTable</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching.
|
|
/// Stored in main context (1 instance)
|
|
/// </code>
|
|
/// </remarks>
|
|
public unsafe partial struct ImGuiKeyRoutingTablePtr(ImGuiKeyRoutingTable* ptr) : INullable
|
|
{
|
|
private ImGuiKeyRoutingTable* _ptr = ptr;
|
|
public ImGuiKeyRoutingTable* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImGuiKeyRoutingTablePtr(ImGuiKeyRoutingTable* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImGuiKeyRoutingTable*(ImGuiKeyRoutingTablePtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Index of first entry in Entries[]
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1573">imgui_internal.h:1573</see>
|
|
/// <br/><c>ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching.
|
|
/// Stored in main context (1 instance)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref short_155 Index => ref Unsafe.AsRef<short_155>(&_ptr->Index);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1574">imgui_internal.h:1574</see>
|
|
/// <br/><c>ImVector<ImGuiKeyRoutingData> Entries</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching.
|
|
/// Stored in main context (1 instance)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImVector<ImGuiKeyRoutingData> Entries =>
|
|
ref Unsafe.AsRef<ImVector<ImGuiKeyRoutingData>>(&_ptr->Entries);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Double-buffer to avoid reallocation (could use a shared buffer)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1575">imgui_internal.h:1575</see>
|
|
/// <br/><c>ImVector<ImGuiKeyRoutingData> EntriesNext</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching.
|
|
/// Stored in main context (1 instance)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImVector<ImGuiKeyRoutingData> EntriesNext =>
|
|
ref Unsafe.AsRef<ImVector<ImGuiKeyRoutingData>>(&_ptr->EntriesNext);
|
|
}
|
|
}
|