mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-16 17:53:14 +02:00
ShowTestWindow() demonstrate tree nodes within columns.
This commit is contained in:
@ -8344,6 +8344,12 @@ void ImGui::ShowTestWindow(bool* opened)
|
|||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
|
ImGui::Columns(2, "tree items");
|
||||||
|
if (ImGui::TreeNode("Hello")) { ImGui::BulletText("World"); ImGui::TreePop(); } ImGui::NextColumn();
|
||||||
|
if (ImGui::TreeNode("Bonjour")) { ImGui::BulletText("Monde"); ImGui::TreePop(); }
|
||||||
|
ImGui::Columns(1);
|
||||||
|
ImGui::Separator();
|
||||||
|
|
||||||
ImGui::Columns(2, "word wrapping");
|
ImGui::Columns(2, "word wrapping");
|
||||||
ImGui::TextWrapped("The quick brown fox jumps over the lazy dog.");
|
ImGui::TextWrapped("The quick brown fox jumps over the lazy dog.");
|
||||||
ImGui::Text("Hello Left");
|
ImGui::Text("Hello Left");
|
||||||
|
Reference in New Issue
Block a user