(copy-boxed-slots-to-foreign structure native-ptr &optional (type (and structure (type-of structure))))
type
Copies the contents of structure to C structure pointed to by native-ptr. type is used to determine which slots and which cstruct definition should be used.
Examples:
(cffi:with-foreign-object (point-ptr 'gdk::point-cstruct)
(gobject:copy-boxed-slots-to-foreign (gdk:make-point :x 10 :y 10) point-ptr 'gdk:point))