//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Hook for extensions like ImGuiTestEngine
///
///
/// C++:
/// imgui_internal.h:152
///
struct ImGuiContextHook
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 32)]
public partial struct ImGuiContextHook
{
///
///
/// A unique ID assigned by AddContextHook()
///
///
/// C++:
/// imgui_internal.h:2319
///
ImGuiID HookId
///
///
[FieldOffset(0)]
public ImGuiID HookId;
///
///
/// C++:
/// imgui_internal.h:2320
///
ImGuiContextHookType Type
///
///
[FieldOffset(4)]
public ImGuiContextHookType Type;
///
///
/// C++:
/// imgui_internal.h:2321
///
ImGuiID Owner
///
///
[FieldOffset(8)]
public ImGuiID Owner;
///
///
/// C++:
/// imgui_internal.h:2322
///
ImGuiContextHookCallback Callback
///
///
[FieldOffset(16)]
public nint Callback;
///
///
/// C++:
/// imgui_internal.h:2323
///
void* UserData
///
///
[FieldOffset(24)]
public nint UserData;
}
///
///
/// Hook for extensions like ImGuiTestEngine
///
///
/// C++:
/// imgui_internal.h:152
///
struct ImGuiContextHook
///
///
///
///
/// ImGui
///
///
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;
///
///
/// A unique ID assigned by AddContextHook()
///
///
/// C++:
/// imgui_internal.h:2319
///
ImGuiID HookId
///
///
public ref ImGuiID HookId => ref Unsafe.AsRef(&_ptr->HookId);
///
///
/// C++:
/// imgui_internal.h:2320
///
ImGuiContextHookType Type
///
///
public ref ImGuiContextHookType Type => ref Unsafe.AsRef(&_ptr->Type);
///
///
/// C++:
/// imgui_internal.h:2321
///
ImGuiID Owner
///
///
public ref ImGuiID Owner => ref Unsafe.AsRef(&_ptr->Owner);
///
///
/// C++:
/// imgui_internal.h:2322
///
ImGuiContextHookCallback Callback
///
///
public ref nint Callback => ref Unsafe.AsRef(&_ptr->Callback);
///
///
/// C++:
/// imgui_internal.h:2323
///
void* UserData
///
///
public ref nint UserData => ref Unsafe.AsRef(&_ptr->UserData);
}
}