MCPcopy Create free account
hub / github.com/RenderKit/embree / Begin

Method Begin

tutorials/common/imgui/imgui.cpp:2683–2706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2681}
2682
2683void ImGuiListClipper::Begin(int items_count, float items_height)
2684{
2685 ImGuiContext& g = *GImGui;
2686 ImGuiWindow* window = g.CurrentWindow;
2687 IMGUI_DEBUG_LOG_CLIPPER("Clipper: Begin(%d,%.2f) in '%s'\n", items_count, items_height, window->Name);
2688
2689 if (ImGuiTable* table = g.CurrentTable)
2690 if (table->IsInsideRow)
2691 ImGui::TableEndRow(table);
2692
2693 StartPosY = window->DC.CursorPos.y;
2694 ItemsHeight = items_height;
2695 ItemsCount = items_count;
2696 DisplayStart = -1;
2697 DisplayEnd = 0;
2698
2699 // Acquire temporary buffer
2700 if (++g.ClipperTempDataStacked > g.ClipperTempData.Size)
2701 g.ClipperTempData.resize(g.ClipperTempDataStacked, ImGuiListClipperData());
2702 ImGuiListClipperData* data = &g.ClipperTempData[g.ClipperTempDataStacked - 1];
2703 data->Reset(this);
2704 data->LossynessOffset = window->DC.CursorStartPosLossyness.y;
2705 TempData = data;
2706}
2707
2708void ImGuiListClipper::End()
2709{

Callers 3

DebugNodeDrawListMethod · 0.80
ShowDebugLogWindowMethod · 0.80
ListBoxMethod · 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