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

Method TablePopColumnChannel

external/imgui/imgui_tables.cpp:2529–2541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2527}
2528
2529void ImGui::TablePopColumnChannel()
2530{
2531 ImGuiContext& g = *GImGui;
2532 ImGuiTable* table = g.CurrentTable;
2533
2534 // Optimization: avoid PopClipRect() + SetCurrentChannel()
2535 if ((table->Flags & ImGuiTableFlags_NoClip) || (table->CurrentColumn == -1)) // Calling TreePop() after TableNextRow() is supported.
2536 return;
2537 ImGuiWindow* window = g.CurrentWindow;
2538 const ImGuiTableColumn* column = &table->Columns[table->CurrentColumn];
2539 SetWindowClipRectBeforeSetChannel(window, column->ClipRect);
2540 table->DrawSplitter->SetCurrentChannel(window->DrawList, column->DrawChannelCurrent);
2541}
2542
2543// Allocate draw channels. Called by TableUpdateLayout()
2544// - We allocate them following storage order instead of display order so reordering columns won't needlessly

Callers

nothing calls this directly

Calls 1

SetCurrentChannelMethod · 0.80

Tested by

no test coverage detected