mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Merge branch 'viewport' into docking
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| // dear imgui, v1.67 | ||||
| // dear imgui, v1.68 WIP | ||||
| // (main code and documentation) | ||||
|  | ||||
| // Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp for demo code. | ||||
| @@ -3454,6 +3454,7 @@ void ImGui::NewFrame() | ||||
|             IM_ASSERT(g.PlatformIO.Platform_SetWindowPos != NULL  && "Platform init didn't install handlers?"); | ||||
|             IM_ASSERT(g.PlatformIO.Platform_GetWindowSize != NULL  && "Platform init didn't install handlers?"); | ||||
|             IM_ASSERT(g.PlatformIO.Platform_SetWindowSize != NULL  && "Platform init didn't install handlers?"); | ||||
|             IM_ASSERT(g.PlatformIO.Monitors.Size > 0 && "Platform init didn't setup Monitors list?"); | ||||
|             IM_ASSERT((g.Viewports[0]->PlatformUserData != NULL || g.Viewports[0]->PlatformHandle != NULL) && "Platform init didn't setup main viewport."); | ||||
|             if (g.IO.ConfigDockingTransparentPayload && (g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) | ||||
|                 IM_ASSERT(g.PlatformIO.Platform_SetWindowAlpha != NULL && "Platform_SetWindowAlpha handler is required to use io.ConfigDockingTransparent!"); | ||||
| @@ -13704,7 +13705,7 @@ void ImGui::ShowMetricsWindow(bool* p_open) | ||||
|         ImGui::Unindent(ImGui::GetTreeNodeToLabelSpacing()); | ||||
|         if (g.PlatformIO.Monitors.Size > 0 && ImGui::TreeNode("Monitors", "Monitors (%d)", g.PlatformIO.Monitors.Size)) | ||||
|         { | ||||
|             ImGui::TextWrapped("(When viewports are enabled, imgui optionally uses monitor data to position popup/tooltips so they don't straddle monitors.)"); | ||||
|             ImGui::TextWrapped("(When viewports are enabled, imgui needs uses monitor data to position popup/tooltips so they don't straddle monitors.)"); | ||||
|             for (int i = 0; i < g.PlatformIO.Monitors.Size; i++) | ||||
|             { | ||||
|                 const ImGuiPlatformMonitor& mon = g.PlatformIO.Monitors[i]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user