tunedal
09/06/2018, 11:04 AM...
const val WS_OVERLAPPEDWINDOW: Int = 13565952
const val WS_POPUP: UInt = -2147483648.toUInt()
...
...which is a bit cumbersome to use. Is there a good way to pass a list of arguments to a function where each argument can be either Int or UInt? Or can cinterop be improved for these cases?svyatoslav.scherbina
09/06/2018, 11:11 AMconst val WS_OVERLAPPEDWINDOW
is special: you can pass it to interop function expecting UInt
. Does it solve the problem?
There is also an explicit way to convert between integer types, see convert
function here: https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md#portabilitytunedal
09/06/2018, 11:17 AMCreateWindowExW
? But that's the case with all the WS_*
constants, most of which are still Int
.msink
09/06/2018, 11:20 AMtunedal
09/06/2018, 11:52 AMWS_MINIMIZE
or WS_OVERLAPPED
but not WS_MINIMIZE or WS_OVERLAPPED
.tunedal
09/06/2018, 11:58 AMWS_POPUP or WS_BORDER or ...
which doesn't work anymore without first converting either WS_POPUP
or all the other flags.