mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 20:51:06 +01:00 
			
		
		
		
	Added most basic form of Disabled flag to disable interactions (but visuals aren't altered), in imgui_internals.h, undocumented/unsupported (#211, #1012)
This commit is contained in:
		| @@ -582,9 +582,10 @@ enum ImGuiItemFlags_ | ||||
| { | ||||
|     ImGuiItemFlags_AllowKeyboardFocus           = 1 << 0,  // true | ||||
|     ImGuiItemFlags_ButtonRepeat                 = 1 << 1,  // false    // Button() will return true multiple times based on io.KeyRepeatDelay and io.KeyRepeatRate settings. | ||||
|     //ImGuiItemFlags_Disabled                   = 1 << 2,  // false    // All widgets appears are disabled | ||||
|     //ImGuiItemFlags_AllowNavDefaultFocus       = 1 << 3,  // true | ||||
|     ImGuiItemFlags_SelectableDontClosePopup     = 1 << 4,  // false    // MenuItem/Selectable() automatically closes current Popup window | ||||
|     ImGuiItemFlags_Disabled                     = 1 << 2,  // false    // FIXME-WIP: Disable interactions but doesn't affect visuals. Should be: grey out and disable interactions with widgets that affect data + view widgets (WIP)  | ||||
|     //ImGuiItemFlags_NoNav                      = 1 << 3,  // false | ||||
|     //ImGuiItemFlags_NoNavDefaultFocus          = 1 << 4,  // false | ||||
|     ImGuiItemFlags_SelectableDontClosePopup     = 1 << 5,  // false    // MenuItem/Selectable() automatically closes current Popup window | ||||
|     ImGuiItemFlags_Default_                     = ImGuiItemFlags_AllowKeyboardFocus | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user