MCPcopy Create free account
hub / github.com/cinder/Cinder / TablePopColumnChannel

Method TablePopColumnChannel

src/imgui/imgui_tables.cpp:2500–2512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2498}
2499
2500void ImGui::TablePopColumnChannel()
2501{
2502 ImGuiContext& g = *GImGui;
2503 ImGuiTable* table = g.CurrentTable;
2504
2505 // Optimization: avoid PopClipRect() + SetCurrentChannel()
2506 if ((table->Flags & ImGuiTableFlags_NoClip) || (table->CurrentColumn == -1)) // Calling TreePop() after TableNextRow() is supported.
2507 return;
2508 ImGuiWindow* window = g.CurrentWindow;
2509 const ImGuiTableColumn* column = &table->Columns[table->CurrentColumn];
2510 SetWindowClipRectBeforeSetChannel(window, column->ClipRect);
2511 table->DrawSplitter->SetCurrentChannel(window->DrawList, column->DrawChannelCurrent);
2512}
2513
2514// Allocate draw channels. Called by TableUpdateLayout()
2515// - 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