| 2923 | } |
| 2924 | |
| 2925 | bool ImGuiListClipper::Step() |
| 2926 | { |
| 2927 | ImGuiContext& g = *GImGui; |
| 2928 | bool need_items_height = (ItemsHeight <= 0.0f); |
| 2929 | bool ret = ImGuiListClipper_StepInternal(this); |
| 2930 | if (ret && (DisplayStart == DisplayEnd)) |
| 2931 | ret = false; |
| 2932 | if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false) |
| 2933 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n"); |
| 2934 | if (need_items_height && ItemsHeight > 0.0f) |
| 2935 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight); |
| 2936 | if (ret) |
| 2937 | { |
| 2938 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd); |
| 2939 | } |
| 2940 | else |
| 2941 | { |
| 2942 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n"); |
| 2943 | End(); |
| 2944 | } |
| 2945 | return ret; |
| 2946 | } |
| 2947 | |
| 2948 | //----------------------------------------------------------------------------- |
| 2949 | // [SECTION] STYLING |
no test coverage detected