MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / DockNodeStartMouseMovingWindow

Method DockNodeStartMouseMovingWindow

imgui_tiny_app/imgui/imgui.cpp:18945–18953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18943}
18944
18945static void ImGui::DockNodeStartMouseMovingWindow(ImGuiDockNode* node, ImGuiWindow* window)
18946{
18947 ImGuiContext& g = *GImGui;
18948 IM_ASSERT(node->WantMouseMove == true);
18949 StartMouseMovingWindow(window);
18950 g.ActiveIdClickOffset = g.IO.MouseClickedPos[0] - node->Pos;
18951 g.MovingWindow = window; // If we are docked into a non moveable root window, StartMouseMovingWindow() won't set g.MovingWindow. Override that decision.
18952 node->WantMouseMove = false;
18953}
18954
18955// Update CentralNode, OnlyNodeWithWindows, LastFocusedNodeID. Copy window class.
18956static void ImGui::DockNodeUpdateForRootNode(ImGuiDockNode* node)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected