MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / DockContextEndFrame

Method DockContextEndFrame

extern/imgui/imgui.cpp:14703–14717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14701}
14702
14703void ImGui::DockContextEndFrame(ImGuiContext* ctx)
14704{
14705 // Draw backgrounds of node missing their window
14706 ImGuiContext& g = *ctx;
14707 ImGuiDockContext* dc = &g.DockContext;
14708 for (int n = 0; n < dc->Nodes.Data.Size; n++)
14709 if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p)
14710 if (node->LastFrameActive == g.FrameCount && node->IsVisible && node->HostWindow && node->IsLeafNode() && !node->IsBgDrawnThisFrame)
14711 {
14712 ImRect bg_rect(node->Pos + ImVec2(0.0f, GetFrameHeight()), node->Pos + node->Size);
14713 ImDrawFlags bg_rounding_flags = CalcRoundingFlagsForRectInRect(bg_rect, node->HostWindow->Rect(), DOCKING_SPLITTER_SIZE);
14714 node->HostWindow->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG);
14715 node->HostWindow->DrawList->AddRectFilled(bg_rect.Min, bg_rect.Max, node->LastBgColor, node->HostWindow->WindowRounding, bg_rounding_flags);
14716 }
14717}
14718
14719ImGuiDockNode* ImGui::DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id)
14720{

Callers

nothing calls this directly

Calls 3

ImVec2Function · 0.85
ChannelsSetCurrentMethod · 0.80
AddRectFilledMethod · 0.80

Tested by

no test coverage detected