mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
638 lines
38 KiB
C#
638 lines
38 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 manually clip large list of items
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L199">imgui.h:199</see>
|
|
/// <br/><c>struct ImGuiListClipper</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 48)]
|
|
public partial struct ImGuiListClipper
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Parent UI context
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2933">imgui.h:2933</see>
|
|
/// <br/><c>ImGuiContext* Ctx</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public ImGuiContextPtr Ctx;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// First item to display, updated by each call to Step()
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2934">imgui.h:2934</see>
|
|
/// <br/><c>int DisplayStart</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public int DisplayStart;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// End of items to display (exclusive)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2935">imgui.h:2935</see>
|
|
/// <br/><c>int DisplayEnd</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(12)]
|
|
public int DisplayEnd;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Number of items
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2936">imgui.h:2936</see>
|
|
/// <br/><c>int ItemsCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(16)]
|
|
public int ItemsCount;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Height of item after a first step and item submission can calculate it
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2937">imgui.h:2937</see>
|
|
/// <br/><c>float ItemsHeight</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(20)]
|
|
public float ItemsHeight;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Cursor position at the time of Begin() or after table frozen rows are all processed
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2938">imgui.h:2938</see>
|
|
/// <br/><c>double StartPosY</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(24)]
|
|
public double StartPosY;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Account for frozen rows in a table and initial loss of precision in very large windows.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2939">imgui.h:2939</see>
|
|
/// <br/><c>double StartSeekOffsetY</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(32)]
|
|
public double StartSeekOffsetY;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Internal data
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2940">imgui.h:2940</see>
|
|
/// <br/><c>void* TempData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(40)]
|
|
public nint TempData;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Helper to manually clip large list of items
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L199">imgui.h:199</see>
|
|
/// <br/><c>struct ImGuiListClipper</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImGuiListClipperPtr(ImGuiListClipper* ptr) : INullable
|
|
{
|
|
private ImGuiListClipper* _ptr = ptr;
|
|
public ImGuiListClipper* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImGuiListClipperPtr(ImGuiListClipper* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImGuiListClipper*(ImGuiListClipperPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Parent UI context
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2933">imgui.h:2933</see>
|
|
/// <br/><c>ImGuiContext* Ctx</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImGuiContextPtr Ctx => ref Unsafe.AsRef<ImGuiContextPtr>(&_ptr->Ctx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// First item to display, updated by each call to Step()
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2934">imgui.h:2934</see>
|
|
/// <br/><c>int DisplayStart</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref int DisplayStart => ref Unsafe.AsRef<int>(&_ptr->DisplayStart);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// End of items to display (exclusive)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2935">imgui.h:2935</see>
|
|
/// <br/><c>int DisplayEnd</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref int DisplayEnd => ref Unsafe.AsRef<int>(&_ptr->DisplayEnd);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Number of items
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2936">imgui.h:2936</see>
|
|
/// <br/><c>int ItemsCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref int ItemsCount => ref Unsafe.AsRef<int>(&_ptr->ItemsCount);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Height of item after a first step and item submission can calculate it
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2937">imgui.h:2937</see>
|
|
/// <br/><c>float ItemsHeight</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref float ItemsHeight => ref Unsafe.AsRef<float>(&_ptr->ItemsHeight);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Cursor position at the time of Begin() or after table frozen rows are all processed
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2938">imgui.h:2938</see>
|
|
/// <br/><c>double StartPosY</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref double StartPosY => ref Unsafe.AsRef<double>(&_ptr->StartPosY);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Account for frozen rows in a table and initial loss of precision in very large windows.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2939">imgui.h:2939</see>
|
|
/// <br/><c>double StartSeekOffsetY</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref double StartSeekOffsetY => ref Unsafe.AsRef<double>(&_ptr->StartSeekOffsetY);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Internal data
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2940">imgui.h:2940</see>
|
|
/// <br/><c>void* TempData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper: Manually clip large list of items.
|
|
/// If you have lots evenly spaced items and you have random access to the list, you can perform coarse
|
|
/// clipping based on visibility to only submit items that are in view.
|
|
/// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped.
|
|
/// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally
|
|
/// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily
|
|
/// scale using lists with tens of thousands of items without a problem)
|
|
/// Usage:
|
|
/// ImGuiListClipper clipper;
|
|
/// clipper.Begin(1000); // We have 1000 elements, evenly spaced.
|
|
/// while (clipper.Step())
|
|
/// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
|
/// ImGui::Text("line number %d", i);
|
|
/// Generally what happens is:
|
|
/// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not.
|
|
/// - User code submit that one element.
|
|
/// - Clipper can measure the height of the first element
|
|
/// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element.
|
|
/// - User code submit visible elements.
|
|
/// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint TempData => ref Unsafe.AsRef<nint>(&_ptr->TempData);
|
|
}
|
|
}
|