// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable using System.Runtime.CompilerServices; namespace Brutal.ImGuiApi { /// /// /// Helper to manually clip large list of items /// /// /// C++: /// imgui.h:199 ///
struct ImGuiListClipper ///
///
/// /// /// Forward declarations: ImGui layer /// /// [StructLayout(LayoutKind.Explicit, Size = 48)] public partial struct ImGuiListClipper { /// /// /// Parent UI context /// /// /// C++: /// imgui.h:2933 ///
ImGuiContext* Ctx ///
///
/// /// /// 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. /// /// [FieldOffset(0)] public ImGuiContextPtr Ctx; /// /// /// First item to display, updated by each call to Step() /// /// /// C++: /// imgui.h:2934 ///
int DisplayStart ///
///
/// /// /// 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. /// /// [FieldOffset(8)] public int DisplayStart; /// /// /// End of items to display (exclusive) /// /// /// C++: /// imgui.h:2935 ///
int DisplayEnd ///
///
/// /// /// 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. /// /// [FieldOffset(12)] public int DisplayEnd; /// /// /// [Internal] Number of items /// /// /// C++: /// imgui.h:2936 ///
int ItemsCount ///
///
/// /// /// 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. /// /// [FieldOffset(16)] public int ItemsCount; /// /// /// [Internal] Height of item after a first step and item submission can calculate it /// /// /// C++: /// imgui.h:2937 ///
float ItemsHeight ///
///
/// /// /// 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. /// /// [FieldOffset(20)] public float ItemsHeight; /// /// /// [Internal] Cursor position at the time of Begin() or after table frozen rows are all processed /// /// /// C++: /// imgui.h:2938 ///
double StartPosY ///
///
/// /// /// 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. /// /// [FieldOffset(24)] public double StartPosY; /// /// /// [Internal] Account for frozen rows in a table and initial loss of precision in very large windows. /// /// /// C++: /// imgui.h:2939 ///
double StartSeekOffsetY ///
///
/// /// /// 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. /// /// [FieldOffset(32)] public double StartSeekOffsetY; /// /// /// [Internal] Internal data /// /// /// C++: /// imgui.h:2940 ///
void* TempData ///
///
/// /// /// 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. /// /// [FieldOffset(40)] public nint TempData; } /// /// /// Helper to manually clip large list of items /// /// /// C++: /// imgui.h:199 ///
struct ImGuiListClipper ///
///
/// /// /// Forward declarations: ImGui layer /// /// 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; /// /// /// Parent UI context /// /// /// C++: /// imgui.h:2933 ///
ImGuiContext* Ctx ///
///
/// /// /// 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. /// /// public ref ImGuiContextPtr Ctx => ref Unsafe.AsRef(&_ptr->Ctx); /// /// /// First item to display, updated by each call to Step() /// /// /// C++: /// imgui.h:2934 ///
int DisplayStart ///
///
/// /// /// 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. /// /// public ref int DisplayStart => ref Unsafe.AsRef(&_ptr->DisplayStart); /// /// /// End of items to display (exclusive) /// /// /// C++: /// imgui.h:2935 ///
int DisplayEnd ///
///
/// /// /// 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. /// /// public ref int DisplayEnd => ref Unsafe.AsRef(&_ptr->DisplayEnd); /// /// /// [Internal] Number of items /// /// /// C++: /// imgui.h:2936 ///
int ItemsCount ///
///
/// /// /// 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. /// /// public ref int ItemsCount => ref Unsafe.AsRef(&_ptr->ItemsCount); /// /// /// [Internal] Height of item after a first step and item submission can calculate it /// /// /// C++: /// imgui.h:2937 ///
float ItemsHeight ///
///
/// /// /// 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. /// /// public ref float ItemsHeight => ref Unsafe.AsRef(&_ptr->ItemsHeight); /// /// /// [Internal] Cursor position at the time of Begin() or after table frozen rows are all processed /// /// /// C++: /// imgui.h:2938 ///
double StartPosY ///
///
/// /// /// 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. /// /// public ref double StartPosY => ref Unsafe.AsRef(&_ptr->StartPosY); /// /// /// [Internal] Account for frozen rows in a table and initial loss of precision in very large windows. /// /// /// C++: /// imgui.h:2939 ///
double StartSeekOffsetY ///
///
/// /// /// 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. /// /// public ref double StartSeekOffsetY => ref Unsafe.AsRef(&_ptr->StartSeekOffsetY); /// /// /// [Internal] Internal data /// /// /// C++: /// imgui.h:2940 ///
void* TempData ///
///
/// /// /// 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. /// /// public ref nint TempData => ref Unsafe.AsRef(&_ptr->TempData); } }