mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 15:11:05 +01:00 
			
		
		
		
	Viewports, DPI: Renamed config flags. (#1542)
This commit is contained in:
		
							
								
								
									
										14
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								imgui.h
									
									
									
									
									
								
							@@ -798,10 +798,10 @@ enum ImGuiConfigFlags_
 | 
			
		||||
    ImGuiConfigFlags_NoMouseCursorChange    = 1 << 5,   // Instruct back-end to not alter mouse cursor shape and visibility.
 | 
			
		||||
 | 
			
		||||
    // [BETA] Viewports
 | 
			
		||||
    ImGuiConfigFlags_EnableViewports            = 1 << 10,  // Viewport enable flags (require both ImGuiConfigFlags_PlatformHasViewports + ImGuiConfigFlags_RendererHasViewports set by the respective back-ends)
 | 
			
		||||
    ImGuiConfigFlags_EnableDpiScaleViewports    = 1 << 11,
 | 
			
		||||
    ImGuiConfigFlags_EnableDpiScaleFonts        = 1 << 12,
 | 
			
		||||
    ImGuiConfigFlags_NoTaskBarIconsForViewports = 1 << 13,
 | 
			
		||||
    ImGuiConfigFlags_ViewportsEnable         = 1 << 10,  // Viewport enable flags (require both ImGuiConfigFlags_PlatformHasViewports + ImGuiConfigFlags_RendererHasViewports set by the respective back-ends)
 | 
			
		||||
    ImGuiConfigFlags_ViewportsNoTaskBarIcons = 1 << 11,  // Disable task bars icons for all secondary viewports (will set ImGuiViewportFlags_NoTaskBarIcon on them)
 | 
			
		||||
    ImGuiConfigFlags_DpiEnableScaleViewports = 1 << 12,
 | 
			
		||||
    ImGuiConfigFlags_DpiEnableScaleFonts     = 1 << 13,
 | 
			
		||||
 | 
			
		||||
    // User storage (to allow your back-end/engine to communicate to code that may be shared between multiple projects. Those flags are not used by core ImGui)
 | 
			
		||||
    ImGuiConfigFlags_IsSRGB                 = 1 << 20,  // Application is SRGB-aware.
 | 
			
		||||
@@ -1875,8 +1875,8 @@ struct ImFont
 | 
			
		||||
// - if you are new to dear imgui and trying to integrate it into your engine, you should probably ignore this for now.
 | 
			
		||||
//-----------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
// (Optional) Setup required only if (io.ConfigFlags & ImGuiConfigFlags_EnableViewports) is enabled
 | 
			
		||||
// This is designed so we can mix and match two imgui_impl_xxxx files, one for the Platform (~ Windowing), one for Renderer.
 | 
			
		||||
// (Optional) Setup required only if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) is enabled
 | 
			
		||||
// This is designed so we can mix and match two imgui_impl_xxxx files, one for the Platform (~window handling), one for Renderer.
 | 
			
		||||
// Custom engine back-ends will often provide both Platform and Renderer interfaces and thus may not need to use all functions.
 | 
			
		||||
// Platform functions are typically called before their Renderer counterpart, apart from Destroy which are called the other way.
 | 
			
		||||
// RenderPlatformWindowsDefault() basically iterate secondary viewports and call Platform+Renderer's RenderWindow then Platform+Renderer's SwapBuffers,
 | 
			
		||||
@@ -1924,7 +1924,7 @@ enum ImGuiViewportFlags_
 | 
			
		||||
    ImGuiViewportFlags_NoDecoration             = 1 << 0,   // Platform Window: Disable platform title bar, borders, etc.
 | 
			
		||||
    ImGuiViewportFlags_NoFocusOnAppearing       = 1 << 1,   // Platform Window: Don't take focus when created.
 | 
			
		||||
    ImGuiViewportFlags_NoInputs                 = 1 << 2,   // Platform Window: Make mouse pass through so we can drag this window while peaking behind it.
 | 
			
		||||
    ImGuiViewportFlags_NoTaskBarIcon            = 1 << 3,   // Platform Window: Disable platform task bar icon (for popups, menus, or all windows if ImGuiConfigFlags_NoTaskBarIconsForViewports if set)
 | 
			
		||||
    ImGuiViewportFlags_NoTaskBarIcon            = 1 << 3,   // Platform Window: Disable platform task bar icon (for popups, menus, or all windows if ImGuiConfigFlags_ViewportsNoTaskBarIcons if set)
 | 
			
		||||
    ImGuiViewportFlags_NoRendererClear          = 1 << 4    // Platform Window: Renderer doesn't need to clear the framebuffer ahead.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user