| 3122 | } |
| 3123 | |
| 3124 | bool ImGuiListClipper::Step() |
| 3125 | { |
| 3126 | ImGuiContext& g = *Ctx; |
| 3127 | bool need_items_height = (ItemsHeight <= 0.0f); |
| 3128 | bool ret = ImGuiListClipper_StepInternal(this); |
| 3129 | if (ret && (DisplayStart == DisplayEnd)) |
| 3130 | ret = false; |
| 3131 | if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false) |
| 3132 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n"); |
| 3133 | if (need_items_height && ItemsHeight > 0.0f) |
| 3134 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight); |
| 3135 | if (ret) |
| 3136 | { |
| 3137 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd); |
| 3138 | } |
| 3139 | else |
| 3140 | { |
| 3141 | IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n"); |
| 3142 | End(); |
| 3143 | } |
| 3144 | return ret; |
| 3145 | } |
| 3146 | |
| 3147 | //----------------------------------------------------------------------------- |
| 3148 | // [SECTION] STYLING |
no test coverage detected