Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Draws visible row ranges and preserves native scrolling, navigation and table cursor bookkeeping.

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

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 parameter TState: Call-scoped drawing data, passed directly so static callbacks need no captured closure.

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.

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.