| 14701 | } |
| 14702 | |
| 14703 | void 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 | |
| 14719 | ImGuiDockNode* ImGui::DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id) |
| 14720 | { |
nothing calls this directly
no test coverage detected