()
| 74 | } |
| 75 | |
| 76 | @Override |
| 77 | public void process() { |
| 78 | if (ImGui.begin("Demo", ImGuiWindowFlags.AlwaysAutoResize)) { |
| 79 | ImGui.text("OS: [" + System.getProperty("os.name") + "] Arch: [" + System.getProperty("os.arch") + "]"); |
| 80 | ImGui.text("Hello, World! " + FontAwesomeIcons.Smile); |
| 81 | if (ImGui.button(FontAwesomeIcons.Save + " Save")) { |
| 82 | count++; |
| 83 | } |
| 84 | ImGui.sameLine(); |
| 85 | ImGui.text(String.valueOf(count)); |
| 86 | ImGui.sameLine(); |
| 87 | // imgui 1.91 TextLink — inline hyperlink widget, returns true when clicked. |
| 88 | if (ImGui.textLink("increment")) { |
| 89 | count++; |
| 90 | } |
| 91 | ImGui.inputText("string", str, ImGuiInputTextFlags.CallbackResize); |
| 92 | ImGui.text("Result: " + str.get()); |
| 93 | ImGui.sliderFloat("float", flt, 0, 1); |
| 94 | |
| 95 | // imgui 1.91 TextLinkOpenURL — hyperlink that opens a URL on click. |
| 96 | ImGui.text("Learn more:"); |
| 97 | ImGui.sameLine(); |
| 98 | ImGui.textLinkOpenURL("Dear ImGui on GitHub", "https://github.com/ocornut/imgui"); |
| 99 | |
| 100 | ImGui.separator(); |
| 101 | ImGui.text("Extra"); |
| 102 | Extra.show(this); |
| 103 | } |
| 104 | ImGui.end(); |
| 105 | } |
| 106 | |
| 107 | private static byte[] loadFromResources(String name) { |
| 108 | try { |
nothing calls this directly
no test coverage detected