MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / Begin

Method Begin

extern/imgui/imgui.cpp:2745–2768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2743}
2744
2745void ImGuiListClipper::Begin(int items_count, float items_height)
2746{
2747 ImGuiContext& g = *GImGui;
2748 ImGuiWindow* window = g.CurrentWindow;
2749 IMGUI_DEBUG_LOG_CLIPPER("Clipper: Begin(%d,%.2f) in '%s'\n", items_count, items_height, window->Name);
2750
2751 if (ImGuiTable* table = g.CurrentTable)
2752 if (table->IsInsideRow)
2753 ImGui::TableEndRow(table);
2754
2755 StartPosY = window->DC.CursorPos.y;
2756 ItemsHeight = items_height;
2757 ItemsCount = items_count;
2758 DisplayStart = -1;
2759 DisplayEnd = 0;
2760
2761 // Acquire temporary buffer
2762 if (++g.ClipperTempDataStacked > g.ClipperTempData.Size)
2763 g.ClipperTempData.resize(g.ClipperTempDataStacked, ImGuiListClipperData());
2764 ImGuiListClipperData* data = &g.ClipperTempData[g.ClipperTempDataStacked - 1];
2765 data->Reset(this);
2766 data->LossynessOffset = window->DC.CursorStartPosLossyness.y;
2767 TempData = data;
2768}
2769
2770void ImGuiListClipper::End()
2771{

Callers 7

DebugNodeDrawListMethod · 0.80
ShowDebugLogWindowMethod · 0.80
ListBoxMethod · 0.80
ShowDemoWindowTablesFunction · 0.80
ShowDemoWindowColumnsFunction · 0.80
DrawFunction · 0.80
ShowExampleAppLongTextFunction · 0.80

Calls 15

CreateNewWindowFunction · 0.85
ImLengthSqrFunction · 0.85
ImVec2Function · 0.85
ImVec4Class · 0.85
ImStrdupcpyFunction · 0.85
CalcWindowContentSizesFunction · 0.85
SetCurrentWindowFunction · 0.85
ImMaxFunction · 0.85
CalcWindowAutoFitSizeFunction · 0.85

Tested by

no test coverage detected