Skip to content

Commit

Permalink
[API] Added inputTextWithHint with ability to use callback (#159)
Browse files Browse the repository at this point in the history
Co-authored-by: kirill-boginskiy <kirill.boginskiy@vizor-games.com>
  • Loading branch information
Boginsky and kirill-boginskiy authored Feb 28, 2023
1 parent ae6765a commit e9f1b72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imgui-binding/src/main/java/imgui/ImGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -3103,6 +3103,10 @@ public static boolean inputTextWithHint(String label, String hint, ImString text
return preInputText(false, label, hint, text, 0, 0, imGuiInputTextFlags);
}

public static boolean inputTextWithHint(String label, String hint, ImString text, int imGuiInputTextFlags, ImGuiInputTextCallback callback) {
return preInputText(false, label, hint, text, 0, 0, imGuiInputTextFlags, callback);
}

private static boolean preInputText(boolean multiline, String label, String hint, ImString text) {
return preInputText(multiline, label, hint, text, 0, 0);
}
Expand Down

0 comments on commit e9f1b72

Please sign in to comment.