mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-12 00:14:20 +00:00
ShowTestWindow() demonstrate tree nodes within columns.
This commit is contained in:
parent
8e8cb7de3f
commit
4cb236fe46
1 changed files with 7 additions and 1 deletions
|
|
@ -8343,7 +8343,13 @@ void ImGui::ShowTestWindow(bool* opened)
|
|||
ImGui::Columns(1);
|
||||
|
||||
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::TextWrapped("The quick brown fox jumps over the lazy dog.");
|
||||
ImGui::Text("Hello Left");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue