|
@@ -7400,7 +7400,7 @@ void ImGui::PushColumnsBackground()
|
|
|
ImGuiColumns* columns = window->DC.CurrentColumns;
|
|
|
if (columns->Count == 1)
|
|
|
return;
|
|
|
- window->DrawList->ChannelsSetCurrent(0);
|
|
|
+ columns->Splitter.SetCurrentChannel(window->DrawList, 0);
|
|
|
int cmd_size = window->DrawList->CmdBuffer.Size;
|
|
|
PushClipRect(columns->HostClipRect.Min, columns->HostClipRect.Max, false);
|
|
|
IM_UNUSED(cmd_size);
|
|
@@ -7413,7 +7413,7 @@ void ImGui::PopColumnsBackground()
|
|
|
ImGuiColumns* columns = window->DC.CurrentColumns;
|
|
|
if (columns->Count == 1)
|
|
|
return;
|
|
|
- window->DrawList->ChannelsSetCurrent(columns->Current + 1);
|
|
|
+ columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1);
|
|
|
PopClipRect();
|
|
|
}
|
|
|
|
|
@@ -7504,8 +7504,8 @@ void ImGui::BeginColumns(const char* str_id, int columns_count, ImGuiColumnsFlag
|
|
|
|
|
|
if (columns->Count > 1)
|
|
|
{
|
|
|
- window->DrawList->ChannelsSplit(1 + columns->Count);
|
|
|
- window->DrawList->ChannelsSetCurrent(1);
|
|
|
+ columns->Splitter.Split(window->DrawList, 1 + columns->Count);
|
|
|
+ columns->Splitter.SetCurrentChannel(window->DrawList, 1);
|
|
|
PushColumnClipRect(0);
|
|
|
}
|
|
|
|
|
@@ -7544,14 +7544,14 @@ void ImGui::NextColumn()
|
|
|
// Columns 1+ ignore IndentX (by canceling it out)
|
|
|
// FIXME-COLUMNS: Unnecessary, could be locked?
|
|
|
window->DC.ColumnsOffset.x = GetColumnOffset(columns->Current) - window->DC.Indent.x + column_padding;
|
|
|
- window->DrawList->ChannelsSetCurrent(columns->Current + 1);
|
|
|
+ columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
// New row/line
|
|
|
// Column 0 honor IndentX
|
|
|
window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f);
|
|
|
- window->DrawList->ChannelsSetCurrent(1);
|
|
|
+ columns->Splitter.SetCurrentChannel(window->DrawList, 1);
|
|
|
columns->Current = 0;
|
|
|
columns->LineMinY = columns->LineMaxY;
|
|
|
}
|
|
@@ -7581,7 +7581,7 @@ void ImGui::EndColumns()
|
|
|
if (columns->Count > 1)
|
|
|
{
|
|
|
PopClipRect();
|
|
|
- window->DrawList->ChannelsMerge();
|
|
|
+ columns->Splitter.Merge(window->DrawList);
|
|
|
}
|
|
|
|
|
|
const ImGuiColumnsFlags flags = columns->Flags;
|