Using KMutableProperty0 in java?
Closed this issue · 5 comments
MrManiacc commented
I'm trying to implement a list box, for file dialog. I'm using the java lwjgl 3 bindings and i can't figure out how to give it a KMutableProperty0 <Int>
in java. I may be overseeing something but i'm at a loss.
Sylvyrfysh commented
This is something I believe @elect86 looked in to, but was unable to get
anywhere with. I'll take a look in the next few days, but if you need an
immediate workaround, you can use an int array of size one. ImGui will
modify the first element, and you can access it with array[0].
…On Thu, May 2, 2019, 16:05 James Raynor ***@***.***> wrote:
I'm trying to implement a list box, for file dialog. I'm using the java
lwjgl 3 bindings and i can't figure out how to give it a 'KMutableProperty0
<Int' in java. I may be overseeing something but i'm at a loss.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#86>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADTJ6QHMOCPRFXWOHGDT76DPTNJRJANCNFSM4HKIEPYQ>
.
elect86 commented
Exactly.
This needs further investigation, rely on the array version for the moment. If it's missing we can add it
MrManiacc commented
When trying to use an int array, I get the following error: Wrong 2nd argument type. Found: 'int[]', required:'kotlin.reflect.KMutableProperty0<java.lang.Integer>
MrManiacc commented
Awesome. Working fine now, thank you!