mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
165 lines
6.7 KiB
C#
165 lines
6.7 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Helper to split a draw list into different layers which can be drawn into out of order, then flattened back.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L179">imgui.h:179</see>
|
|
/// <br/><c>struct ImDrawListSplitter</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 24)]
|
|
public partial struct ImDrawListSplitter
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Current channel number (0)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3289">imgui.h:3289</see>
|
|
/// <br/><c>int _Current</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
|
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public int _Current;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Number of active channels (1+)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3290">imgui.h:3290</see>
|
|
/// <br/><c>int _Count</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
|
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(4)]
|
|
public int _Count;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Draw channels (not resized down so _Count might be < Channels.Size)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3291">imgui.h:3291</see>
|
|
/// <br/><c>ImVector<ImDrawChannel> _Channels</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
|
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public ImVector<ImDrawChannel> _Channels;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Helper to split a draw list into different layers which can be drawn into out of order, then flattened back.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L179">imgui.h:179</see>
|
|
/// <br/><c>struct ImDrawListSplitter</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImDrawListSplitterPtr(ImDrawListSplitter* ptr) : INullable
|
|
{
|
|
private ImDrawListSplitter* _ptr = ptr;
|
|
public ImDrawListSplitter* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImDrawListSplitterPtr(ImDrawListSplitter* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImDrawListSplitter*(ImDrawListSplitterPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Current channel number (0)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3289">imgui.h:3289</see>
|
|
/// <br/><c>int _Current</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
|
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref int _Current => ref Unsafe.AsRef<int>(&_ptr->_Current);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Number of active channels (1+)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3290">imgui.h:3290</see>
|
|
/// <br/><c>int _Count</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
|
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref int _Count => ref Unsafe.AsRef<int>(&_ptr->_Count);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Draw channels (not resized down so _Count might be < Channels.Size)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3291">imgui.h:3291</see>
|
|
/// <br/><c>ImVector<ImDrawChannel> _Channels</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
|
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImVector<ImDrawChannel> _Channels => ref Unsafe.AsRef<ImVector<ImDrawChannel>>(&_ptr->_Channels);
|
|
}
|
|
}
|