We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I don't understand this :(
imgui/imgui-core/src/main/kotlin/imgui/demo/showExampleApp/Console.kt
Lines 219 to 223 in 7881207
anyone does have a java version of console.kt .. java decompiler doesn't make any sense :( I want to know how to use that callback thingy in inputText
inputText
the decompilation looks like
when i read this val textEditCallbackStub: InputTextCallback
val textEditCallbackStub: InputTextCallback
i thought its going to be InputTextCallback textEditCallbackStub but theres method stub for InputTextCallback i dont understand xD
InputTextCallback textEditCallbackStub
The text was updated successfully, but these errors were encountered:
Fire up the demo test, then -> widgets -> Text Input -> Filtered Text Input
widgets
Text Input
Filtered Text Input
The following filter is apply
val filterImGuiLetters: InputTextCallback = { data: InputTextCallbackData -> when { data.eventChar.i < 256 && data.eventChar in "imgui" -> false else -> true } }
It basically means that if the typed char is no one of imgui then it gets filtered (blocked)
imgui
Eg. you can type uiiiiuuuummg
Sorry, something went wrong.
Sorry, I misunderstood what you asked
var filter = new Function1<InputTextCallbackData, Boolean>() { @Override public Boolean invoke(InputTextCallbackData inputTextCallbackData) { if ("ciao".indexOf(inputTextCallbackData.getEventChar()) != -1) return Boolean.FALSE; else return Boolean.TRUE; } }; imgui.inputText("label", "buf", 0, filter, null);
Ps: I can add some overload so you don't have to type null at the end
null
No branches or pull requests
I don't understand this :(
imgui/imgui-core/src/main/kotlin/imgui/demo/showExampleApp/Console.kt
Lines 219 to 223 in 7881207
anyone does have a java version of console.kt .. java decompiler doesn't make any sense :(
I want to know how to use that callback thingy in
inputText
the decompilation looks like
when i read this
val textEditCallbackStub: InputTextCallback
i thought its going to be
InputTextCallback textEditCallbackStub
but theres method stub for InputTextCallback i dont understand xDThe text was updated successfully, but these errors were encountered: