mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-23 02:04:22 +00:00
parent
ecb0aaa7c2
commit
e489e40a85
3 changed files with 7 additions and 6 deletions
|
|
@ -2806,13 +2806,13 @@ void ImGuiListClipper::End()
|
|||
ItemsCount = -1;
|
||||
}
|
||||
|
||||
void ImGuiListClipper::IncludeRangeByIndices(int item_min, int item_max)
|
||||
void ImGuiListClipper::IncludeRangeByIndices(int item_begin, int item_end)
|
||||
{
|
||||
ImGuiListClipperData* data = (ImGuiListClipperData*)TempData;
|
||||
IM_ASSERT(DisplayStart < 0); // Only allowed after Begin() and if there has not been a specified range yet.
|
||||
IM_ASSERT(item_min <= item_max);
|
||||
if (item_min < item_max)
|
||||
data->Ranges.push_back(ImGuiListClipperRange::FromIndices(item_min, item_max));
|
||||
IM_ASSERT(item_begin <= item_end);
|
||||
if (item_begin < item_end)
|
||||
data->Ranges.push_back(ImGuiListClipperRange::FromIndices(item_begin, item_end));
|
||||
}
|
||||
|
||||
static bool ImGuiListClipper_StepInternal(ImGuiListClipper* clipper)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue