2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QMATRIX_H
|
|
|
|
#define MIQT_QT_GEN_QMATRIX_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QLine;
|
|
|
|
class QLineF;
|
|
|
|
class QMatrix;
|
|
|
|
class QPainterPath;
|
|
|
|
class QPoint;
|
|
|
|
class QPointF;
|
|
|
|
class QRect;
|
|
|
|
class QRectF;
|
|
|
|
class QRegion;
|
|
|
|
#else
|
|
|
|
typedef struct QLine QLine;
|
|
|
|
typedef struct QLineF QLineF;
|
|
|
|
typedef struct QMatrix QMatrix;
|
|
|
|
typedef struct QPainterPath QPainterPath;
|
|
|
|
typedef struct QPoint QPoint;
|
|
|
|
typedef struct QPointF QPointF;
|
|
|
|
typedef struct QRect QRect;
|
|
|
|
typedef struct QRectF QRectF;
|
|
|
|
typedef struct QRegion QRegion;
|
|
|
|
#endif
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QMatrix_new(int param1, QMatrix** outptr_QMatrix);
|
|
|
|
void QMatrix_new2(QMatrix** outptr_QMatrix);
|
|
|
|
void QMatrix_new3(double m11, double m12, double m21, double m22, double dx, double dy, QMatrix** outptr_QMatrix);
|
|
|
|
void QMatrix_new4(QMatrix* other, QMatrix** outptr_QMatrix);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMatrix_OperatorAssign(QMatrix* self, QMatrix* param1);
|
|
|
|
void QMatrix_SetMatrix(QMatrix* self, double m11, double m12, double m21, double m22, double dx, double dy);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QMatrix_M11(const QMatrix* self);
|
|
|
|
double QMatrix_M12(const QMatrix* self);
|
|
|
|
double QMatrix_M21(const QMatrix* self);
|
|
|
|
double QMatrix_M22(const QMatrix* self);
|
|
|
|
double QMatrix_Dx(const QMatrix* self);
|
|
|
|
double QMatrix_Dy(const QMatrix* self);
|
|
|
|
void QMatrix_Map(const QMatrix* self, int x, int y, int* tx, int* ty);
|
|
|
|
void QMatrix_Map2(const QMatrix* self, double x, double y, double* tx, double* ty);
|
|
|
|
QRect* QMatrix_MapRect(const QMatrix* self, QRect* param1);
|
|
|
|
QRectF* QMatrix_MapRectWithQRectF(const QMatrix* self, QRectF* param1);
|
|
|
|
QPoint* QMatrix_MapWithQPoint(const QMatrix* self, QPoint* p);
|
|
|
|
QPointF* QMatrix_MapWithQPointF(const QMatrix* self, QPointF* p);
|
|
|
|
QLine* QMatrix_MapWithQLine(const QMatrix* self, QLine* l);
|
|
|
|
QLineF* QMatrix_MapWithQLineF(const QMatrix* self, QLineF* l);
|
|
|
|
QRegion* QMatrix_MapWithQRegion(const QMatrix* self, QRegion* r);
|
|
|
|
QPainterPath* QMatrix_MapWithQPainterPath(const QMatrix* self, QPainterPath* p);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMatrix_Reset(QMatrix* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMatrix_IsIdentity(const QMatrix* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
QMatrix* QMatrix_Translate(QMatrix* self, double dx, double dy);
|
|
|
|
QMatrix* QMatrix_Scale(QMatrix* self, double sx, double sy);
|
|
|
|
QMatrix* QMatrix_Shear(QMatrix* self, double sh, double sv);
|
|
|
|
QMatrix* QMatrix_Rotate(QMatrix* self, double a);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMatrix_IsInvertible(const QMatrix* self);
|
|
|
|
double QMatrix_Determinant(const QMatrix* self);
|
|
|
|
QMatrix* QMatrix_Inverted(const QMatrix* self);
|
|
|
|
bool QMatrix_OperatorEqual(const QMatrix* self, QMatrix* param1);
|
|
|
|
bool QMatrix_OperatorNotEqual(const QMatrix* self, QMatrix* param1);
|
2024-08-25 04:08:24 +00:00
|
|
|
QMatrix* QMatrix_OperatorMultiplyAssign(QMatrix* self, QMatrix* param1);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMatrix* QMatrix_OperatorMultiply(const QMatrix* self, QMatrix* o);
|
|
|
|
QMatrix* QMatrix_Inverted1(const QMatrix* self, bool* invertible);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QMatrix_Delete(QMatrix* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|