mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 04:31:06 +01:00 
			
		
		
		
	Allow passing -0.01f to PushItemWidth() for a perfect right-side alignment + fix CalcItemWidth()
This commit is contained in:
		
							
								
								
									
										2
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -195,7 +195,7 @@ namespace ImGui | ||||
|     IMGUI_API void          PopStyleVar(int count = 1); | ||||
|  | ||||
|     // Parameters stacks (current window) | ||||
|     IMGUI_API void          PushItemWidth(float item_width);                                    // width of items for the common item+label case, pixels. 0.0f = default to ~2/3 of windows width, >0.0f: width in pixels, <0.0f align xx pixels to the right of window | ||||
|     IMGUI_API void          PushItemWidth(float item_width);                                    // width of items for the common item+label case, pixels. 0.0f = default to ~2/3 of windows width, >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -0.01f always align width to the right side) | ||||
|     IMGUI_API void          PopItemWidth(); | ||||
|     IMGUI_API float         CalcItemWidth();                                                    // width of item given pushed settings and current cursor position | ||||
|     IMGUI_API void          PushAllowKeyboardFocus(bool v);                                     // allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgets. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user