How does Kotlin Native handle C unions via C Inter...
# kotlin-native
n
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
I handle them via reinterpretation (casting)
👍 1
Consider it a type of open class