mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 04:17:03 +00:00 
			
		
		
		
	ImGuiListClipper: internal rework and tidying up to facilitate supporting frozen rows in tables + stop promoting using constructors parameters.
This commit is contained in:
		| @@ -6154,7 +6154,8 @@ bool ImGui::ListBox(const char* label, int* current_item, bool (*items_getter)(v | ||||
|     // Assume all items have even height (= 1 line of text). If you need items of different or variable sizes you can create a custom version of ListBox() in your code without using the clipper. | ||||
|     ImGuiContext& g = *GImGui; | ||||
|     bool value_changed = false; | ||||
|     ImGuiListClipper clipper(items_count, GetTextLineHeightWithSpacing()); // We know exactly our line height here so we pass it as a minor optimization, but generally you don't need to. | ||||
|     ImGuiListClipper clipper; | ||||
|     clipper.Begin(items_count, GetTextLineHeightWithSpacing()); // We know exactly our line height here so we pass it as a minor optimization, but generally you don't need to. | ||||
|     while (clipper.Step()) | ||||
|         for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) | ||||
|         { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ocornut
					ocornut