MCPcopy Index your code
hub / github.com/SpaiR/imgui-java / process

Method process

example/src/main/java/Main.java:76–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 12

beginMethod · 0.95
textMethod · 0.95
buttonMethod · 0.95
sameLineMethod · 0.95
textLinkMethod · 0.95
inputTextMethod · 0.95
sliderFloatMethod · 0.95
textLinkOpenURLMethod · 0.95
separatorMethod · 0.95
showMethod · 0.95
endMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected