MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / PushColumnsBackground

Method PushColumnsBackground

lib/imgui/imgui_widgets.cpp:7450–7461  ·  view source on GitHub ↗

Get into the columns background draw command (which is generally the same draw command as before we called BeginColumns)

Source from the content-addressed store, hash-verified

7448
7449// Get into the columns background draw command (which is generally the same draw command as before we called BeginColumns)
7450void ImGui::PushColumnsBackground()
7451{
7452 ImGuiWindow* window = GetCurrentWindowRead();
7453 ImGuiColumns* columns = window->DC.CurrentColumns;
7454 if (columns->Count == 1)
7455 return;
7456 columns->Splitter.SetCurrentChannel(window->DrawList, 0);
7457 int cmd_size = window->DrawList->CmdBuffer.Size;
7458 PushClipRect(columns->HostClipRect.Min, columns->HostClipRect.Max, false);
7459 IM_UNUSED(cmd_size);
7460 IM_ASSERT(cmd_size == window->DrawList->CmdBuffer.Size); // Being in channel 0 this should not have created an ImDrawCmd
7461}
7462
7463void ImGui::PopColumnsBackground()
7464{

Callers

nothing calls this directly

Calls 2

GetCurrentWindowReadFunction · 0.85
SetCurrentChannelMethod · 0.80

Tested by

no test coverage detected