| 3338 | } |
| 3339 | |
| 3340 | bool ImGuiListClipper::Step() |
| 3341 | { |
| 3342 | ImGuiContext& g = *Ctx; |
| 3343 | bool need_items_height = (ItemsHeight <= 0.0f); |
| 3344 | bool ret = ImGuiListClipper_StepInternal(this); |
| 3345 | if (ret && (DisplayStart >= DisplayEnd)) |
| 3346 | ret = false; |
| 3347 | if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false) |
| 3348 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n"); |
| 3349 | if (need_items_height && ItemsHeight > 0.0f) |
| 3350 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight); |
| 3351 | if (ret) |
| 3352 | { |
| 3353 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd); |
| 3354 | } |
| 3355 | else |
| 3356 | { |
| 3357 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n"); |
| 3358 | End(); |
| 3359 | } |
| 3360 | return ret; |
| 3361 | } |
| 3362 | |
| 3363 | //----------------------------------------------------------------------------- |
| 3364 | // [SECTION] STYLING |
no test coverage detected