MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / Begin

Method Begin

KBotExt/imgui/imgui.cpp:2804–2830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2802}
2803
2804void ImGuiListClipper::Begin(int items_count, float items_height)
2805{
2806 if (Ctx == NULL)
2807 Ctx = ImGui::GetCurrentContext();
2808
2809 ImGuiContext& g = *Ctx;
2810 ImGuiWindow* window = g.CurrentWindow;
2811 IMGUI_DEBUG_LOG_CLIPPER("Clipper: Begin(%d,%.2f) in '%s'\n", items_count, items_height, window->Name);
2812
2813 if (ImGuiTable* table = g.CurrentTable)
2814 if (table->IsInsideRow)
2815 ImGui::TableEndRow(table);
2816
2817 StartPosY = window->DC.CursorPos.y;
2818 ItemsHeight = items_height;
2819 ItemsCount = items_count;
2820 DisplayStart = -1;
2821 DisplayEnd = 0;
2822
2823 // Acquire temporary buffer
2824 if (++g.ClipperTempDataStacked > g.ClipperTempData.Size)
2825 g.ClipperTempData.resize(g.ClipperTempDataStacked, ImGuiListClipperData());
2826 ImGuiListClipperData* data = &g.ClipperTempData[g.ClipperTempDataStacked - 1];
2827 data->Reset(this);
2828 data->LossynessOffset = window->DC.CursorStartPosLossyness.y;
2829 TempData = data;
2830}
2831
2832void ImGuiListClipper::End()
2833{

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