mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 15:11:05 +01:00 
			
		
		
		
	Viewport: Added ImGuiConfigFlags_ViewportsNoMerge flag (to enforce a platform window for all floating windows) + minor tidying up and addition of non-functional wip code.
This commit is contained in:
		
							
								
								
									
										22
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								imgui.h
									
									
									
									
									
								
							@@ -787,22 +787,24 @@ enum ImGuiNavInput_
 | 
			
		||||
// Configuration flags stored in io.ConfigFlags. Set by user/application.
 | 
			
		||||
enum ImGuiConfigFlags_
 | 
			
		||||
{
 | 
			
		||||
    ImGuiConfigFlags_NavEnableKeyboard      = 1 << 0,   // Master keyboard navigation enable flag. NewFrame() will automatically fill io.NavInputs[] based on io.KeysDown[].
 | 
			
		||||
    ImGuiConfigFlags_NavEnableGamepad       = 1 << 1,   // Master gamepad navigation enable flag. This is mostly to instruct your imgui back-end to fill io.NavInputs[]. Back-end also needs to set ImGuiBackendFlags_HasGamepad.
 | 
			
		||||
    ImGuiConfigFlags_NavEnableSetMousePos   = 1 << 2,   // Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your binding, otherwise ImGui will react as if the mouse is jumping around back and forth.
 | 
			
		||||
    ImGuiConfigFlags_NavNoCaptureKeyboard   = 1 << 3,   // Instruct navigation to not set the io.WantCaptureKeyboard flag with io.NavActive is set. 
 | 
			
		||||
    ImGuiConfigFlags_NoMouse                = 1 << 4,   // Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information back-end
 | 
			
		||||
    ImGuiConfigFlags_NoMouseCursorChange    = 1 << 5,   // Instruct back-end to not alter mouse cursor shape and visibility.
 | 
			
		||||
    ImGuiConfigFlags_NavEnableKeyboard       = 1 << 0,   // Master keyboard navigation enable flag. NewFrame() will automatically fill io.NavInputs[] based on io.KeysDown[].
 | 
			
		||||
    ImGuiConfigFlags_NavEnableGamepad        = 1 << 1,   // Master gamepad navigation enable flag. This is mostly to instruct your imgui back-end to fill io.NavInputs[]. Back-end also needs to set ImGuiBackendFlags_HasGamepad.
 | 
			
		||||
    ImGuiConfigFlags_NavEnableSetMousePos    = 1 << 2,   // Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your binding, otherwise ImGui will react as if the mouse is jumping around back and forth.
 | 
			
		||||
    ImGuiConfigFlags_NavNoCaptureKeyboard    = 1 << 3,   // Instruct navigation to not set the io.WantCaptureKeyboard flag with io.NavActive is set. 
 | 
			
		||||
    ImGuiConfigFlags_NoMouse                 = 1 << 4,   // Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information back-end
 | 
			
		||||
    ImGuiConfigFlags_NoMouseCursorChange     = 1 << 5,   // Instruct back-end to not alter mouse cursor shape and visibility.
 | 
			
		||||
 | 
			
		||||
    // [BETA] Viewports
 | 
			
		||||
    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,
 | 
			
		||||
    ImGuiConfigFlags_ViewportsNoMerge        = 1 << 12,  // All floating windows _always_ have create their own viewport and platform window.
 | 
			
		||||
 | 
			
		||||
    ImGuiConfigFlags_DpiEnableScaleViewports = 1 << 13,
 | 
			
		||||
    ImGuiConfigFlags_DpiEnableScaleFonts     = 1 << 14,
 | 
			
		||||
 | 
			
		||||
    // 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.
 | 
			
		||||
    ImGuiConfigFlags_IsTouchScreen          = 1 << 21   // Application is using a touch screen instead of a mouse.
 | 
			
		||||
    ImGuiConfigFlags_IsSRGB                  = 1 << 20,  // Application is SRGB-aware.
 | 
			
		||||
    ImGuiConfigFlags_IsTouchScreen           = 1 << 21   // Application is using a touch screen instead of a mouse.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// Back-end capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom back-end.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user