2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QSIZE_H
|
|
|
|
#define GEN_QSIZE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "binding.h"
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QMargins;
|
|
|
|
class QMarginsF;
|
|
|
|
class QSize;
|
|
|
|
class QSizeF;
|
|
|
|
#else
|
|
|
|
typedef struct QMargins QMargins;
|
|
|
|
typedef struct QMarginsF QMarginsF;
|
|
|
|
typedef struct QSize QSize;
|
|
|
|
typedef struct QSizeF QSizeF;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QSize* QSize_new();
|
|
|
|
QSize* QSize_new2(int w, int h);
|
|
|
|
QSize* QSize_new3(QSize* param1);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSize_IsNull(const QSize* self);
|
|
|
|
bool QSize_IsEmpty(const QSize* self);
|
|
|
|
bool QSize_IsValid(const QSize* self);
|
|
|
|
int QSize_Width(const QSize* self);
|
|
|
|
int QSize_Height(const QSize* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSize_SetWidth(QSize* self, int w);
|
|
|
|
void QSize_SetHeight(QSize* self, int h);
|
|
|
|
void QSize_Transpose(QSize* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QSize_Transposed(const QSize* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QSize_Scale(QSize* self, int w, int h, uintptr_t mode);
|
|
|
|
void QSize_Scale2(QSize* self, QSize* s, uintptr_t mode);
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QSize_Scaled(const QSize* self, int w, int h, uintptr_t mode);
|
|
|
|
QSize* QSize_Scaled2(const QSize* self, QSize* s, uintptr_t mode);
|
|
|
|
QSize* QSize_ExpandedTo(const QSize* self, QSize* param1);
|
|
|
|
QSize* QSize_BoundedTo(const QSize* self, QSize* param1);
|
|
|
|
QSize* QSize_GrownBy(const QSize* self, QMargins* m);
|
|
|
|
QSize* QSize_ShrunkBy(const QSize* self, QMargins* m);
|
2024-08-25 04:08:24 +00:00
|
|
|
QSize* QSize_OperatorPlusAssign(QSize* self, QSize* param1);
|
|
|
|
QSize* QSize_OperatorMinusAssign(QSize* self, QSize* param1);
|
|
|
|
QSize* QSize_OperatorMultiplyAssign(QSize* self, double c);
|
|
|
|
QSize* QSize_OperatorDivideAssign(QSize* self, double c);
|
|
|
|
void QSize_Delete(QSize* self);
|
|
|
|
|
|
|
|
QSizeF* QSizeF_new();
|
|
|
|
QSizeF* QSizeF_new2(QSize* sz);
|
|
|
|
QSizeF* QSizeF_new3(double w, double h);
|
|
|
|
QSizeF* QSizeF_new4(QSizeF* param1);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSizeF_IsNull(const QSizeF* self);
|
|
|
|
bool QSizeF_IsEmpty(const QSizeF* self);
|
|
|
|
bool QSizeF_IsValid(const QSizeF* self);
|
|
|
|
double QSizeF_Width(const QSizeF* self);
|
|
|
|
double QSizeF_Height(const QSizeF* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSizeF_SetWidth(QSizeF* self, double w);
|
|
|
|
void QSizeF_SetHeight(QSizeF* self, double h);
|
|
|
|
void QSizeF_Transpose(QSizeF* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
QSizeF* QSizeF_Transposed(const QSizeF* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QSizeF_Scale(QSizeF* self, double w, double h, uintptr_t mode);
|
|
|
|
void QSizeF_Scale2(QSizeF* self, QSizeF* s, uintptr_t mode);
|
2024-09-11 05:41:09 +00:00
|
|
|
QSizeF* QSizeF_Scaled(const QSizeF* self, double w, double h, uintptr_t mode);
|
|
|
|
QSizeF* QSizeF_Scaled2(const QSizeF* self, QSizeF* s, uintptr_t mode);
|
|
|
|
QSizeF* QSizeF_ExpandedTo(const QSizeF* self, QSizeF* param1);
|
|
|
|
QSizeF* QSizeF_BoundedTo(const QSizeF* self, QSizeF* param1);
|
|
|
|
QSizeF* QSizeF_GrownBy(const QSizeF* self, QMarginsF* m);
|
|
|
|
QSizeF* QSizeF_ShrunkBy(const QSizeF* self, QMarginsF* m);
|
2024-08-25 04:08:24 +00:00
|
|
|
QSizeF* QSizeF_OperatorPlusAssign(QSizeF* self, QSizeF* param1);
|
|
|
|
QSizeF* QSizeF_OperatorMinusAssign(QSizeF* self, QSizeF* param1);
|
|
|
|
QSizeF* QSizeF_OperatorMultiplyAssign(QSizeF* self, double c);
|
|
|
|
QSizeF* QSizeF_OperatorDivideAssign(QSizeF* self, double c);
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QSizeF_ToSize(const QSizeF* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSizeF_Delete(QSizeF* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|