mirror of
https://github.com/mappu/miqt.git
synced 2025-01-21 06:00:38 +00:00
a0c6344ecd
The expected type of the callback is already known from the AST - this change reduces dependency on cgo specifics and makes the generated C ABI entirely cgo-independent - in particular, there is no need to include `_cgo_export.h` any more.
37 lines
736 B
C++
37 lines
736 B
C++
#include <QTileRules>
|
|
#include <qdrawutil.h>
|
|
#include "gen_qdrawutil.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
QTileRules* QTileRules_new(int horizontalRule, int verticalRule) {
|
|
return new QTileRules(static_cast<Qt::TileRule>(horizontalRule), static_cast<Qt::TileRule>(verticalRule));
|
|
}
|
|
|
|
QTileRules* QTileRules_new2() {
|
|
return new QTileRules();
|
|
}
|
|
|
|
QTileRules* QTileRules_new3(QTileRules* param1) {
|
|
return new QTileRules(*param1);
|
|
}
|
|
|
|
QTileRules* QTileRules_new4(int rule) {
|
|
return new QTileRules(static_cast<Qt::TileRule>(rule));
|
|
}
|
|
|
|
void QTileRules_Delete(QTileRules* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QTileRules*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|