Papierkorb / qt5.cr

Qt5 bindings for Crystal, based on Bindgen
Mozilla Public License 2.0
211 stars 20 forks source link

More pass by value #56

Closed f-fr closed 2 years ago

f-fr commented 2 years ago

Now several types are passed by value, greatly reducing memory-management-work. Furthermore the wrappers are now generated automatically, so all methods are supported (in contrast to the former manual wrapper around Qt::Point and Qt::PointF). This includes the types QPoint, QSize, QRect and QLine and der *F counterparts.

I kept some of the manual methods for QPoint because they should be even faster (they can be inlined and do not have to go through the c++ binding).

This requires bindgen PR #121 to merged first.

docelic commented 2 years ago

Thank you!