ImGuiWidget.ClippedRows
Section titled “ImGuiWidget.ClippedRows”
- Draws visible row ranges and preserves native scrolling, navigation and table cursor bookkeeping.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public void InnoEditor.ImGui.ImGuiWidget.ClippedRows<TState>(int itemCount, float itemHeight, TState state, System.Action<TState, int, int> drawRange, System.ReadOnlySpan<int> preservedRows = default(System.ReadOnlySpan<int>))Type parameters
Section titled “Type parameters”Type parameter TState: Call-scoped drawing data, passed directly so static callbacks need no captured closure.
Parameters
Section titled “Parameters”Parameter itemCount: The nonnegative count in the caller’s current filtered and sorted view.
Parameter itemHeight: The complete fixed row advance in screen pixels, or -1 to measure the first row through the native clipper.
Parameter state: Data borrowed only for this call; it is never stored by the widget.
Parameter drawRange: A synchronous drawing callback receiving inclusive start and exclusive end indices.
Parameter preservedRows: Optional rows that must still submit an active edit, drag source or requested focus.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: The drawing callback is null.
Exception T:System.ArgumentOutOfRangeException: A count, row height or preserved index is invalid.
Exception T:System.InvalidOperationException: No native frame is active in this UI session.