MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / Step

Method Step

external/imgui/imgui.cpp:3538–3559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3536}
3537
3538bool ImGuiListClipper::Step()
3539{
3540 ImGuiContext& g = *Ctx;
3541 bool need_items_height = (ItemsHeight <= 0.0f);
3542 bool ret = ImGuiListClipper_StepInternal(this);
3543 if (ret && (DisplayStart >= DisplayEnd))
3544 ret = false;
3545 if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false)
3546 IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n");
3547 if (need_items_height && ItemsHeight > 0.0f)
3548 IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight);
3549 if (ret)
3550 {
3551 IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd);
3552 }
3553 else
3554 {
3555 IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n");
3556 End();
3557 }
3558 return ret;
3559}
3560
3561// Generic helper, equivalent to old ImGui::CalcListClipping() but stateless
3562void ImGui::CalcClipRectVisibleItemsY(const ImRect& clip_rect, const ImVec2& pos, float items_height, int* out_visible_start, int* out_visible_end)

Callers 8

DebugNodeDrawListMethod · 0.45
ShowDebugLogWindowMethod · 0.45
ComboMethod · 0.45
ListBoxMethod · 0.45
m_DrawPlacesPaneMethod · 0.45
m_DisplayPathPopupMethod · 0.45
m_DrawFileListViewMethod · 0.45

Calls 1

Tested by

no test coverage detected