mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
114 lines
3.2 KiB
C++
114 lines
3.2 KiB
C++
#include <QSizePolicy>
|
|
#include <qsizepolicy.h>
|
|
#include "gen_qsizepolicy.h"
|
|
#include "_cgo_export.h"
|
|
|
|
QSizePolicy* QSizePolicy_new() {
|
|
return new QSizePolicy();
|
|
}
|
|
|
|
QSizePolicy* QSizePolicy_new2(int horizontal, int vertical) {
|
|
return new QSizePolicy(static_cast<QSizePolicy::Policy>(horizontal), static_cast<QSizePolicy::Policy>(vertical));
|
|
}
|
|
|
|
QSizePolicy* QSizePolicy_new3(QSizePolicy* param1) {
|
|
return new QSizePolicy(*param1);
|
|
}
|
|
|
|
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));
|
|
}
|
|
|
|
int QSizePolicy_HorizontalPolicy(const QSizePolicy* self) {
|
|
QSizePolicy::Policy _ret = self->horizontalPolicy();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
int QSizePolicy_VerticalPolicy(const QSizePolicy* self) {
|
|
QSizePolicy::Policy _ret = self->verticalPolicy();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
int QSizePolicy_ControlType(const QSizePolicy* self) {
|
|
QSizePolicy::ControlType _ret = self->controlType();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QSizePolicy_SetHorizontalPolicy(QSizePolicy* self, int d) {
|
|
self->setHorizontalPolicy(static_cast<QSizePolicy::Policy>(d));
|
|
}
|
|
|
|
void QSizePolicy_SetVerticalPolicy(QSizePolicy* self, int d) {
|
|
self->setVerticalPolicy(static_cast<QSizePolicy::Policy>(d));
|
|
}
|
|
|
|
void QSizePolicy_SetControlType(QSizePolicy* self, int typeVal) {
|
|
self->setControlType(static_cast<QSizePolicy::ControlType>(typeVal));
|
|
}
|
|
|
|
int QSizePolicy_ExpandingDirections(const QSizePolicy* self) {
|
|
Qt::Orientations _ret = self->expandingDirections();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QSizePolicy_SetHeightForWidth(QSizePolicy* self, bool b) {
|
|
self->setHeightForWidth(b);
|
|
}
|
|
|
|
bool QSizePolicy_HasHeightForWidth(const QSizePolicy* self) {
|
|
return self->hasHeightForWidth();
|
|
}
|
|
|
|
void QSizePolicy_SetWidthForHeight(QSizePolicy* self, bool b) {
|
|
self->setWidthForHeight(b);
|
|
}
|
|
|
|
bool QSizePolicy_HasWidthForHeight(const QSizePolicy* self) {
|
|
return self->hasWidthForHeight();
|
|
}
|
|
|
|
bool QSizePolicy_OperatorEqual(const QSizePolicy* self, QSizePolicy* s) {
|
|
return self->operator==(*s);
|
|
}
|
|
|
|
bool QSizePolicy_OperatorNotEqual(const QSizePolicy* self, QSizePolicy* s) {
|
|
return self->operator!=(*s);
|
|
}
|
|
|
|
int QSizePolicy_HorizontalStretch(const QSizePolicy* self) {
|
|
return self->horizontalStretch();
|
|
}
|
|
|
|
int QSizePolicy_VerticalStretch(const QSizePolicy* self) {
|
|
return self->verticalStretch();
|
|
}
|
|
|
|
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));
|
|
}
|
|
|
|
bool QSizePolicy_RetainSizeWhenHidden(const QSizePolicy* self) {
|
|
return self->retainSizeWhenHidden();
|
|
}
|
|
|
|
void QSizePolicy_SetRetainSizeWhenHidden(QSizePolicy* self, bool retainSize) {
|
|
self->setRetainSizeWhenHidden(retainSize);
|
|
}
|
|
|
|
void QSizePolicy_Transpose(QSizePolicy* self) {
|
|
self->transpose();
|
|
}
|
|
|
|
QSizePolicy* QSizePolicy_Transposed(const QSizePolicy* self) {
|
|
return new QSizePolicy(self->transposed());
|
|
}
|
|
|
|
void QSizePolicy_Delete(QSizePolicy* self) {
|
|
delete self;
|
|
}
|
|
|