https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
n

napperley

09/08/2021, 11:47 PM
How does Kotlin Native handle C unions via C Interop? GdkEvent ( https://gnome.pages.gitlab.gnome.org/gtk/gdk3/union.Event.html ) is an example of a C Union. Using the
gtk_menu_popup_at_pointer
function ( https://docs.gtk.org/gtk3/method.Menu.popup_at_pointer.html ) as an example how would one pass through a "fake" Union to the function?
c

Clocks

09/09/2021, 3:26 AM
I handle them via reinterpretation (casting)
👍 1
Consider it a type of open class
3 Views