| 2987 | } |
| 2988 | |
| 2989 | bool ImGuiListClipper::Step() |
| 2990 | { |
| 2991 | ImGuiContext& g = *Ctx; |
| 2992 | bool need_items_height = (ItemsHeight <= 0.0f); |
| 2993 | bool ret = ImGuiListClipper_StepInternal(this); |
| 2994 | if (ret && (DisplayStart == DisplayEnd)) |
| 2995 | ret = false; |
| 2996 | if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false) |
| 2997 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n"); |
| 2998 | if (need_items_height && ItemsHeight > 0.0f) |
| 2999 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight); |
| 3000 | if (ret) |
| 3001 | { |
| 3002 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd); |
| 3003 | } |
| 3004 | else |
| 3005 | { |
| 3006 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n"); |
| 3007 | End(); |
| 3008 | } |
| 3009 | return ret; |
| 3010 | } |
| 3011 | |
| 3012 | //----------------------------------------------------------------------------- |
| 3013 | // [SECTION] STYLING |
no test coverage detected