mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 20:51:06 +01:00 
			
		
		
		
	ImFont: Added GetDebugName() helper.
This commit is contained in:
		
							
								
								
									
										1
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -1568,6 +1568,7 @@ struct ImFont | |||||||
|     IMGUI_API void              SetFallbackChar(ImWchar c); |     IMGUI_API void              SetFallbackChar(ImWchar c); | ||||||
|     float                       GetCharAdvance(ImWchar c) const     { return ((int)c < IndexAdvanceX.Size) ? IndexAdvanceX[(int)c] : FallbackAdvanceX; } |     float                       GetCharAdvance(ImWchar c) const     { return ((int)c < IndexAdvanceX.Size) ? IndexAdvanceX[(int)c] : FallbackAdvanceX; } | ||||||
|     bool                        IsLoaded() const                    { return ContainerAtlas != NULL; } |     bool                        IsLoaded() const                    { return ContainerAtlas != NULL; } | ||||||
|  |     const char*                 GetDebugName() const                { return ConfigData ? ConfigData->Name : "<unknown>"; } | ||||||
|  |  | ||||||
|     // 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable. |     // 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable. | ||||||
|     // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. |     // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user