2024-08-25 04:08:24 +00:00
|
|
|
#include <QSizePolicy>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qsizepolicy.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qsizepolicy.h"
|
2024-12-11 06:55:47 +00:00
|
|
|
|
|
|
|
#ifndef _Bool
|
|
|
|
#define _Bool bool
|
|
|
|
#endif
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QSizePolicy* QSizePolicy_new() {
|
|
|
|
return new QSizePolicy();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QSizePolicy* QSizePolicy_new2(int horizontal, int vertical) {
|
|
|
|
return new QSizePolicy(static_cast<QSizePolicy::Policy>(horizontal), static_cast<QSizePolicy::Policy>(vertical));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QSizePolicy* QSizePolicy_new3(QSizePolicy* param1) {
|
|
|
|
return new QSizePolicy(*param1);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QSizePolicy* QSizePolicy_new4(int horizontal, int vertical, int typeVal) {
|
|
|
|
return new QSizePolicy(static_cast<QSizePolicy::Policy>(horizontal), static_cast<QSizePolicy::Policy>(vertical), static_cast<QSizePolicy::ControlType>(typeVal));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QSizePolicy_HorizontalPolicy(const QSizePolicy* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QSizePolicy::Policy _ret = self->horizontalPolicy();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QSizePolicy_VerticalPolicy(const QSizePolicy* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QSizePolicy::Policy _ret = self->verticalPolicy();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QSizePolicy_ControlType(const QSizePolicy* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QSizePolicy::ControlType _ret = self->controlType();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QSizePolicy_SetHorizontalPolicy(QSizePolicy* self, int d) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setHorizontalPolicy(static_cast<QSizePolicy::Policy>(d));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QSizePolicy_SetVerticalPolicy(QSizePolicy* self, int d) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setVerticalPolicy(static_cast<QSizePolicy::Policy>(d));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QSizePolicy_SetControlType(QSizePolicy* self, int typeVal) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setControlType(static_cast<QSizePolicy::ControlType>(typeVal));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QSizePolicy_ExpandingDirections(const QSizePolicy* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::Orientations _ret = self->expandingDirections();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSizePolicy_SetHeightForWidth(QSizePolicy* self, bool b) {
|
|
|
|
self->setHeightForWidth(b);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSizePolicy_HasHeightForWidth(const QSizePolicy* self) {
|
|
|
|
return self->hasHeightForWidth();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QSizePolicy_SetWidthForHeight(QSizePolicy* self, bool b) {
|
|
|
|
self->setWidthForHeight(b);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSizePolicy_HasWidthForHeight(const QSizePolicy* self) {
|
|
|
|
return self->hasWidthForHeight();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSizePolicy_OperatorEqual(const QSizePolicy* self, QSizePolicy* s) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *s);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSizePolicy_OperatorNotEqual(const QSizePolicy* self, QSizePolicy* s) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *s);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QSizePolicy_HorizontalStretch(const QSizePolicy* self) {
|
|
|
|
return self->horizontalStretch();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QSizePolicy_VerticalStretch(const QSizePolicy* self) {
|
|
|
|
return self->verticalStretch();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QSizePolicy_SetHorizontalStretch(QSizePolicy* self, int stretchFactor) {
|
|
|
|
self->setHorizontalStretch(static_cast<int>(stretchFactor));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QSizePolicy_SetVerticalStretch(QSizePolicy* self, int stretchFactor) {
|
|
|
|
self->setVerticalStretch(static_cast<int>(stretchFactor));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSizePolicy_RetainSizeWhenHidden(const QSizePolicy* self) {
|
|
|
|
return self->retainSizeWhenHidden();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QSizePolicy_SetRetainSizeWhenHidden(QSizePolicy* self, bool retainSize) {
|
|
|
|
self->setRetainSizeWhenHidden(retainSize);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QSizePolicy_Transpose(QSizePolicy* self) {
|
|
|
|
self->transpose();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSizePolicy* QSizePolicy_Transposed(const QSizePolicy* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSizePolicy(self->transposed());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QSizePolicy_Delete(QSizePolicy* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QSizePolicy*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|