mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
255 lines
6.2 KiB
C#
Generated
255 lines
6.2 KiB
C#
Generated
// ------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
// ------------------------------------------------------------------------------
|
|
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using HexaGen.Runtime;
|
|
using System.Numerics;
|
|
|
|
namespace Dalamud.Bindings.ImGui
|
|
{
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct ImGuiListClipper
|
|
{
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public int DisplayStart;
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public int DisplayEnd;
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public int ItemsCount;
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public float ItemsHeight;
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public float StartPosY;
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe void* TempData;
|
|
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe ImGuiListClipper(int displayStart = default, int displayEnd = default, int itemsCount = default, float itemsHeight = default, float startPosY = default, void* tempData = default)
|
|
{
|
|
DisplayStart = displayStart;
|
|
DisplayEnd = displayEnd;
|
|
ItemsCount = itemsCount;
|
|
ItemsHeight = itemsHeight;
|
|
StartPosY = startPosY;
|
|
TempData = tempData;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe void Begin(int itemsCount, float itemsHeight)
|
|
{
|
|
fixed (ImGuiListClipper* @this = &this)
|
|
{
|
|
ImGui.BeginNative(@this, itemsCount, itemsHeight);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe void Begin(int itemsCount)
|
|
{
|
|
fixed (ImGuiListClipper* @this = &this)
|
|
{
|
|
ImGui.BeginNative(@this, itemsCount, (float)(-1.0f));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe void Destroy()
|
|
{
|
|
fixed (ImGuiListClipper* @this = &this)
|
|
{
|
|
ImGui.DestroyNative(@this);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe void End()
|
|
{
|
|
fixed (ImGuiListClipper* @this = &this)
|
|
{
|
|
ImGui.EndNative(@this);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe void ForceDisplayRangeByIndices(int itemMin, int itemMax)
|
|
{
|
|
fixed (ImGuiListClipper* @this = &this)
|
|
{
|
|
ImGui.ForceDisplayRangeByIndicesNative(@this, itemMin, itemMax);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe bool Step()
|
|
{
|
|
fixed (ImGuiListClipper* @this = &this)
|
|
{
|
|
byte ret = ImGui.StepNative(@this);
|
|
return ret != 0;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
#if NET5_0_OR_GREATER
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
#endif
|
|
public unsafe struct ImGuiListClipperPtr : IEquatable<ImGuiListClipperPtr>
|
|
{
|
|
public ImGuiListClipperPtr(ImGuiListClipper* handle) { Handle = handle; }
|
|
|
|
public ImGuiListClipper* Handle;
|
|
|
|
public bool IsNull => Handle == null;
|
|
|
|
public static ImGuiListClipperPtr Null => new ImGuiListClipperPtr(null);
|
|
|
|
public ImGuiListClipper this[int index] { get => Handle[index]; set => Handle[index] = value; }
|
|
|
|
public static implicit operator ImGuiListClipperPtr(ImGuiListClipper* handle) => new ImGuiListClipperPtr(handle);
|
|
|
|
public static implicit operator ImGuiListClipper*(ImGuiListClipperPtr handle) => handle.Handle;
|
|
|
|
public static bool operator ==(ImGuiListClipperPtr left, ImGuiListClipperPtr right) => left.Handle == right.Handle;
|
|
|
|
public static bool operator !=(ImGuiListClipperPtr left, ImGuiListClipperPtr right) => left.Handle != right.Handle;
|
|
|
|
public static bool operator ==(ImGuiListClipperPtr left, ImGuiListClipper* right) => left.Handle == right;
|
|
|
|
public static bool operator !=(ImGuiListClipperPtr left, ImGuiListClipper* right) => left.Handle != right;
|
|
|
|
public bool Equals(ImGuiListClipperPtr other) => Handle == other.Handle;
|
|
|
|
/// <inheritdoc/>
|
|
public override bool Equals(object obj) => obj is ImGuiListClipperPtr handle && Equals(handle);
|
|
|
|
/// <inheritdoc/>
|
|
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
|
|
|
|
#if NET5_0_OR_GREATER
|
|
private string DebuggerDisplay => string.Format("ImGuiListClipperPtr [0x{0}]", ((nuint)Handle).ToString("X"));
|
|
#endif
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public ref int DisplayStart => ref Unsafe.AsRef<int>(&Handle->DisplayStart);
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public ref int DisplayEnd => ref Unsafe.AsRef<int>(&Handle->DisplayEnd);
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public ref int ItemsCount => ref Unsafe.AsRef<int>(&Handle->ItemsCount);
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public ref float ItemsHeight => ref Unsafe.AsRef<float>(&Handle->ItemsHeight);
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public ref float StartPosY => ref Unsafe.AsRef<float>(&Handle->StartPosY);
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public void* TempData { get => Handle->TempData; set => Handle->TempData = value; }
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe void Begin(int itemsCount, float itemsHeight)
|
|
{
|
|
ImGui.BeginNative(Handle, itemsCount, itemsHeight);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe void Begin(int itemsCount)
|
|
{
|
|
ImGui.BeginNative(Handle, itemsCount, (float)(-1.0f));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe void Destroy()
|
|
{
|
|
ImGui.DestroyNative(Handle);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe void End()
|
|
{
|
|
ImGui.EndNative(Handle);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe void ForceDisplayRangeByIndices(int itemMin, int itemMax)
|
|
{
|
|
ImGui.ForceDisplayRangeByIndicesNative(Handle, itemMin, itemMax);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public unsafe bool Step()
|
|
{
|
|
byte ret = ImGui.StepNative(Handle);
|
|
return ret != 0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|