mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
155 lines
5.6 KiB
C#
155 lines
5.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>
|
|
/// Hook for extensions like ImGuiTestEngine
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L152">imgui_internal.h:152</see>
|
|
/// <br/><c>struct ImGuiContextHook</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// ImGui
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 32)]
|
|
public partial struct ImGuiContextHook
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// A unique ID assigned by AddContextHook()
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2319">imgui_internal.h:2319</see>
|
|
/// <br/><c>ImGuiID HookId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public ImGuiID HookId;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2320">imgui_internal.h:2320</see>
|
|
/// <br/><c>ImGuiContextHookType Type</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(4)]
|
|
public ImGuiContextHookType Type;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2321">imgui_internal.h:2321</see>
|
|
/// <br/><c>ImGuiID Owner</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(8)]
|
|
public ImGuiID Owner;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2322">imgui_internal.h:2322</see>
|
|
/// <br/><c>ImGuiContextHookCallback Callback</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(16)]
|
|
public nint Callback;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2323">imgui_internal.h:2323</see>
|
|
/// <br/><c>void* UserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(24)]
|
|
public nint UserData;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Hook for extensions like ImGuiTestEngine
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L152">imgui_internal.h:152</see>
|
|
/// <br/><c>struct ImGuiContextHook</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// ImGui
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImGuiContextHookPtr(ImGuiContextHook* ptr) : INullable
|
|
{
|
|
private ImGuiContextHook* _ptr = ptr;
|
|
public ImGuiContextHook* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImGuiContextHookPtr(ImGuiContextHook* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImGuiContextHook*(ImGuiContextHookPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// A unique ID assigned by AddContextHook()
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2319">imgui_internal.h:2319</see>
|
|
/// <br/><c>ImGuiID HookId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref ImGuiID HookId => ref Unsafe.AsRef<ImGuiID>(&_ptr->HookId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2320">imgui_internal.h:2320</see>
|
|
/// <br/><c>ImGuiContextHookType Type</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref ImGuiContextHookType Type => ref Unsafe.AsRef<ImGuiContextHookType>(&_ptr->Type);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2321">imgui_internal.h:2321</see>
|
|
/// <br/><c>ImGuiID Owner</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref ImGuiID Owner => ref Unsafe.AsRef<ImGuiID>(&_ptr->Owner);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2322">imgui_internal.h:2322</see>
|
|
/// <br/><c>ImGuiContextHookCallback Callback</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref nint Callback => ref Unsafe.AsRef<nint>(&_ptr->Callback);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2323">imgui_internal.h:2323</see>
|
|
/// <br/><c>void* UserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref nint UserData => ref Unsafe.AsRef<nint>(&_ptr->UserData);
|
|
}
|
|
}
|