Clocks
02/23/2021, 5:48 AMval int1: CValue<IntVarOf<Int>> = cValue()
val int2: CValue<IntVarOf<Int>> = cValue()
gtk_window_get_default_size(
window = windowPointer,
width = int1,
height = int2
)
gtk_window_get_default_size
takes in a pointer to the window, then a pointer to `Int`s that it will populate.
How can I get the Int
out of CValue<IntVarOf<Int>>
?aleksey.tomin
02/23/2021, 5:57 AMval intValue1 = memScoped {
int1.ptr.pointed.value
}
Clocks
02/23/2021, 6:02 AMBrian Dilley
02/23/2021, 6:29 AMBrian Dilley
02/23/2021, 6:29 AMint1.ptr.pointed.value
changes will intValue
be updated as well?aleksey.tomin
02/23/2021, 6:56 AMaleksey.tomin
02/23/2021, 6:56 AMdoes that copy the value?Int always is copied