Helper tool to diagnose between text encoding issues and font loading issues. Pass your UTF-8 string and verify that there are correct.
| 22309 | } |
| 22310 | else |
| 22311 | { |
| 22312 | // Calling SetNextWindowPos() undock windows by default (by setting PosUndock) |
| 22313 | bool want_undock = false; |
| 22314 | want_undock |= (window->Flags & ImGuiWindowFlags_NoDocking) != 0; |
| 22315 | want_undock |= (g.NextWindowData.HasFlags & ImGuiNextWindowDataFlags_HasPos) && (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) && g.NextWindowData.PosUndock; |
| 22316 | if (want_undock) |
| 22317 | { |
| 22318 | DockContextProcessUndockWindow(&g, window); |
| 22319 | return; |
| 22320 | } |
| 22321 | } |
| 22322 | |
| 22323 | // Bind to our dock node |
| 22324 | ImGuiDockNode* node = window->DockNode; |
| 22325 | if (node != NULL) |
| 22326 | IM_ASSERT(window->DockId == node->ID); |
| 22327 | if (window->DockId != 0 && node == NULL) |
| 22328 | { |
| 22329 | node = DockContextBindNodeToWindow(&g, window); |
| 22330 | if (node == NULL) |
| 22331 | return; |
| 22332 | } |
| 22333 | |
| 22334 | #if 0 |
| 22335 | // Undock if the ImGuiDockNodeFlags_NoDockingInCentralNode got set |
| 22336 | if (node->IsCentralNode && (node->Flags & ImGuiDockNodeFlags_NoDockingInCentralNode)) |
| 22337 | { |
| 22338 | DockContextProcessUndockWindow(ctx, window); |
| 22339 | return; |
| 22340 | } |
| 22341 | #endif |
| 22342 | |
| 22343 | // Undock if our dockspace node disappeared |
| 22344 | // Note how we are testing for LastFrameAlive and NOT LastFrameActive. A DockSpace node can be maintained alive while being inactive with ImGuiDockNodeFlags_KeepAliveOnly. |
| 22345 | if (node->LastFrameAlive < g.FrameCount) |
| 22346 | { |
| 22347 | // If the window has been orphaned, transition the docknode to an implicit node processed in DockContextNewFrameUpdateDocking() |
| 22348 | ImGuiDockNode* root_node = DockNodeGetRootNode(node); |
| 22349 | if (root_node->LastFrameAlive < g.FrameCount) |
nothing calls this directly
no test coverage detected