mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Renamed OpenPopupContextItem() back to OpenPopupOnItemClick(), reverting 99ab5210
				
					
				
			This commit is contained in:
		
							
								
								
									
										12
									
								
								imgui.cpp
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								imgui.cpp
									
									
									
									
									
								
							| @@ -372,6 +372,7 @@ CODE | ||||
|  When you are not sure about a old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files. | ||||
|  You can read releases logs https://github.com/ocornut/imgui/releases for more details. | ||||
|  | ||||
|  - 2020/09/21 (1.79) - renamed OpenPopupContextItem() back to OpenPopupOnItemClick(), reverting the change from 1.77. For varieties of reason this is more self-explanatory. | ||||
|  - 2020/09/17 (1.79) - removed ImFont::DisplayOffset in favor of ImFontConfig::GlyphOffset. DisplayOffset was applied after scaling and not very meaningful/useful outside of being needed by the default ProggyClean font. It was also getting in the way of better font scaling, so let's get rid of it now! | ||||
|  - 2020/08/17 (1.78) - obsoleted use of the trailing 'float power=1.0f' parameter for DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(), DragFloatRange2(), DragScalar(), DragScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(), SliderScalar(), SliderScalarN(), VSliderFloat() and VSliderScalar(). | ||||
|                        replaced the 'float power=1.0f' argument with integer-based flags defaulting to 0 (as with all our flags). | ||||
| @@ -384,7 +385,7 @@ CODE | ||||
|                        for shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. | ||||
|                      - obsoleted use of v_min > v_max in DragInt, DragFloat, DragScalar to lock edits (introduced in 1.73, was not demoed nor documented very), will be replaced by a more generic ReadOnly feature. You may use the ImGuiSliderFlags_ReadOnly internal flag in the meantime. | ||||
|  - 2020/06/23 (1.77) - removed BeginPopupContextWindow(const char*, int mouse_button, bool also_over_items) in favor of BeginPopupContextWindow(const char*, ImGuiPopupFlags flags) with ImGuiPopupFlags_NoOverItems. | ||||
|  - 2020/06/15 (1.77) - renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). | ||||
|  - 2020/06/15 (1.77) - renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). [NOTE: THIS WAS REVERTED IN 1.79] | ||||
|  - 2020/06/15 (1.77) - removed CalcItemRectClosestPoint() entry point which was made obsolete and asserting in December 2017. | ||||
|  - 2020/04/23 (1.77) - removed unnecessary ID (first arg) of ImFontAtlas::AddCustomRectRegular(). | ||||
|  - 2020/01/22 (1.75) - ImDrawList::AddCircle()/AddCircleFilled() functions don't accept negative radius any more. | ||||
| @@ -7920,8 +7921,9 @@ void ImGui::EndPopup() | ||||
|     g.WithinEndChild = false; | ||||
| } | ||||
|  | ||||
| // Open a popup if mouse button is released over the item | ||||
| bool ImGui::OpenPopupContextItem(const char* str_id, ImGuiPopupFlags popup_flags) | ||||
| // Helper to open a popup if mouse button is released over the item | ||||
| // - This is essentially the same as BeginPopupContextItem() but without the trailing BeginPopup() | ||||
| bool ImGui::OpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags) | ||||
| { | ||||
|     ImGuiWindow* window = GImGui->CurrentWindow; | ||||
|     int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); | ||||
| @@ -7938,8 +7940,8 @@ bool ImGui::OpenPopupContextItem(const char* str_id, ImGuiPopupFlags popup_flags | ||||
| // This is a helper to handle the simplest case of associating one named popup to one given widget. | ||||
| // - You can pass a NULL str_id to use the identifier of the last item. | ||||
| // - You may want to handle this on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters). | ||||
| // - This is essentially the same as calling OpenPopupContextItem() + BeginPopup() but written to avoid | ||||
| //   computing the ID twice because BeginPopupContextXXX functions are called very frequently. | ||||
| // - This is essentially the same as calling OpenPopupOnItemClick() + BeginPopup() but written to avoid | ||||
| //   computing the ID twice because BeginPopupContextXXX functions may be called very frequently. | ||||
| bool ImGui::BeginPopupContextItem(const char* str_id, ImGuiPopupFlags popup_flags) | ||||
| { | ||||
|     ImGuiWindow* window = GImGui->CurrentWindow; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user