| 2498 | } |
| 2499 | |
| 2500 | void 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 |
nothing calls this directly
no test coverage detected