| 2861 | } |
| 2862 | |
| 2863 | bool ImGuiListClipper::Step() |
| 2864 | { |
| 2865 | ImGuiContext& g = *GImGui; |
| 2866 | bool need_items_height = (ItemsHeight <= 0.0f); |
| 2867 | bool ret = ImGuiListClipper_StepInternal(this); |
| 2868 | if (ret && (DisplayStart == DisplayEnd)) |
| 2869 | ret = false; |
| 2870 | if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false) |
| 2871 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n"); |
| 2872 | if (need_items_height && ItemsHeight > 0.0f) |
| 2873 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight); |
| 2874 | if (ret) |
| 2875 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd); |
| 2876 | else |
| 2877 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n"); |
| 2878 | if (!ret) |
| 2879 | End(); |
| 2880 | return ret; |
| 2881 | } |
| 2882 | |
| 2883 | //----------------------------------------------------------------------------- |
| 2884 | // [SECTION] STYLING |
no test coverage detected