#include "binding.h" #include #include #include PQApplication QApplication_new(int* argc, char** argv) { // QApplication takes these parameters byref, not by value return new QApplication(*argc, argv); } PQWidget QWidget_new() { return new QWidget(); } void QWidget_show(PQWidget self) { static_cast(self)->show(); } PQPushButton QPushButton_new(const char* label, PQWidget parent) { return new QPushButton(label, static_cast(parent)); } void QPushButton_show(PQPushButton self) { static_cast(self)->show(); } int QApplication_exec(PQApplication self) { return static_cast(self)->exec(); }