kotlin-graphics/imgui

Using KMutableProperty0 in java?

Closed this issue · 5 comments

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.

Exactly.

This needs further investigation, rely on the array version for the moment. If it's missing we can add it

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>

here you go: 87aa5b8

Awesome. Working fine now, thank you!