2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QPAINTENGINE_H
|
|
|
|
#define MIQT_QT_GEN_QPAINTENGINE_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 QBrush;
|
|
|
|
class QFont;
|
2024-08-29 07:01:51 +00:00
|
|
|
class QImage;
|
2024-08-25 04:08:24 +00:00
|
|
|
class QLine;
|
|
|
|
class QLineF;
|
|
|
|
class QMatrix;
|
|
|
|
class QPaintDevice;
|
|
|
|
class QPaintEngine;
|
|
|
|
class QPaintEngineState;
|
|
|
|
class QPainter;
|
|
|
|
class QPainterPath;
|
|
|
|
class QPen;
|
|
|
|
class QPixmap;
|
|
|
|
class QPoint;
|
|
|
|
class QPointF;
|
|
|
|
class QRect;
|
|
|
|
class QRectF;
|
|
|
|
class QRegion;
|
|
|
|
class QTextItem;
|
|
|
|
class QTransform;
|
|
|
|
#else
|
|
|
|
typedef struct QBrush QBrush;
|
|
|
|
typedef struct QFont QFont;
|
2024-08-29 07:01:51 +00:00
|
|
|
typedef struct QImage QImage;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QLine QLine;
|
|
|
|
typedef struct QLineF QLineF;
|
|
|
|
typedef struct QMatrix QMatrix;
|
|
|
|
typedef struct QPaintDevice QPaintDevice;
|
|
|
|
typedef struct QPaintEngine QPaintEngine;
|
|
|
|
typedef struct QPaintEngineState QPaintEngineState;
|
|
|
|
typedef struct QPainter QPainter;
|
|
|
|
typedef struct QPainterPath QPainterPath;
|
|
|
|
typedef struct QPen QPen;
|
|
|
|
typedef struct QPixmap QPixmap;
|
|
|
|
typedef struct QPoint QPoint;
|
|
|
|
typedef struct QPointF QPointF;
|
|
|
|
typedef struct QRect QRect;
|
|
|
|
typedef struct QRectF QRectF;
|
|
|
|
typedef struct QRegion QRegion;
|
|
|
|
typedef struct QTextItem QTextItem;
|
|
|
|
typedef struct QTransform QTransform;
|
|
|
|
#endif
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QTextItem_Descent(const QTextItem* self);
|
|
|
|
double QTextItem_Ascent(const QTextItem* self);
|
|
|
|
double QTextItem_Width(const QTextItem* self);
|
|
|
|
int QTextItem_RenderFlags(const QTextItem* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTextItem_Text(const QTextItem* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
QFont* QTextItem_Font(const QTextItem* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QTextItem_Delete(QTextItem* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QPaintEngine* QPaintEngine_new();
|
|
|
|
QPaintEngine* QPaintEngine_new2(int features);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QPaintEngine_IsActive(const QPaintEngine* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPaintEngine_SetActive(QPaintEngine* self, bool newState);
|
|
|
|
bool QPaintEngine_Begin(QPaintEngine* self, QPaintDevice* pdev);
|
|
|
|
bool QPaintEngine_End(QPaintEngine* self);
|
|
|
|
void QPaintEngine_UpdateState(QPaintEngine* self, QPaintEngineState* state);
|
|
|
|
void QPaintEngine_DrawRects(QPaintEngine* self, QRect* rects, int rectCount);
|
|
|
|
void QPaintEngine_DrawRects2(QPaintEngine* self, QRectF* rects, int rectCount);
|
|
|
|
void QPaintEngine_DrawLines(QPaintEngine* self, QLine* lines, int lineCount);
|
|
|
|
void QPaintEngine_DrawLines2(QPaintEngine* self, QLineF* lines, int lineCount);
|
|
|
|
void QPaintEngine_DrawEllipse(QPaintEngine* self, QRectF* r);
|
|
|
|
void QPaintEngine_DrawEllipseWithQRect(QPaintEngine* self, QRect* r);
|
|
|
|
void QPaintEngine_DrawPath(QPaintEngine* self, QPainterPath* path);
|
|
|
|
void QPaintEngine_DrawPoints(QPaintEngine* self, QPointF* points, int pointCount);
|
|
|
|
void QPaintEngine_DrawPoints2(QPaintEngine* self, QPoint* points, int pointCount);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QPaintEngine_DrawPolygon(QPaintEngine* self, QPointF* points, int pointCount, int mode);
|
|
|
|
void QPaintEngine_DrawPolygon2(QPaintEngine* self, QPoint* points, int pointCount, int mode);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPaintEngine_DrawPixmap(QPaintEngine* self, QRectF* r, QPixmap* pm, QRectF* sr);
|
|
|
|
void QPaintEngine_DrawTextItem(QPaintEngine* self, QPointF* p, QTextItem* textItem);
|
|
|
|
void QPaintEngine_DrawTiledPixmap(QPaintEngine* self, QRectF* r, QPixmap* pixmap, QPointF* s);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QPaintEngine_DrawImage(QPaintEngine* self, QRectF* r, QImage* pm, QRectF* sr, int flags);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPaintEngine_SetPaintDevice(QPaintEngine* self, QPaintDevice* device);
|
2024-09-11 05:41:09 +00:00
|
|
|
QPaintDevice* QPaintEngine_PaintDevice(const QPaintEngine* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPaintEngine_SetSystemClip(QPaintEngine* self, QRegion* baseClip);
|
2024-09-11 05:41:09 +00:00
|
|
|
QRegion* QPaintEngine_SystemClip(const QPaintEngine* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPaintEngine_SetSystemRect(QPaintEngine* self, QRect* rect);
|
2024-09-11 05:41:09 +00:00
|
|
|
QRect* QPaintEngine_SystemRect(const QPaintEngine* self);
|
|
|
|
QPoint* QPaintEngine_CoordinateOffset(const QPaintEngine* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QPaintEngine_Type(const QPaintEngine* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPaintEngine_FixNegRect(QPaintEngine* self, int* x, int* y, int* w, int* h);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QPaintEngine_TestDirty(QPaintEngine* self, int df);
|
|
|
|
void QPaintEngine_SetDirty(QPaintEngine* self, int df);
|
|
|
|
void QPaintEngine_ClearDirty(QPaintEngine* self, int df);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QPaintEngine_HasFeature(const QPaintEngine* self, int feature);
|
|
|
|
QPainter* QPaintEngine_Painter(const QPaintEngine* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPaintEngine_SyncState(QPaintEngine* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QPaintEngine_IsExtended(const QPaintEngine* self);
|
2024-11-23 06:34:52 +00:00
|
|
|
void QPaintEngine_override_virtual_Begin(void* self, intptr_t slot);
|
|
|
|
bool QPaintEngine_virtualbase_Begin(void* self, QPaintDevice* pdev);
|
|
|
|
void QPaintEngine_override_virtual_End(void* self, intptr_t slot);
|
|
|
|
bool QPaintEngine_virtualbase_End(void* self);
|
|
|
|
void QPaintEngine_override_virtual_UpdateState(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_UpdateState(void* self, QPaintEngineState* state);
|
|
|
|
void QPaintEngine_override_virtual_DrawRects(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawRects(void* self, QRect* rects, int rectCount);
|
|
|
|
void QPaintEngine_override_virtual_DrawRects2(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawRects2(void* self, QRectF* rects, int rectCount);
|
|
|
|
void QPaintEngine_override_virtual_DrawLines(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawLines(void* self, QLine* lines, int lineCount);
|
|
|
|
void QPaintEngine_override_virtual_DrawLines2(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawLines2(void* self, QLineF* lines, int lineCount);
|
|
|
|
void QPaintEngine_override_virtual_DrawEllipse(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawEllipse(void* self, QRectF* r);
|
|
|
|
void QPaintEngine_override_virtual_DrawEllipseWithQRect(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawEllipseWithQRect(void* self, QRect* r);
|
|
|
|
void QPaintEngine_override_virtual_DrawPath(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawPath(void* self, QPainterPath* path);
|
|
|
|
void QPaintEngine_override_virtual_DrawPoints(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawPoints(void* self, QPointF* points, int pointCount);
|
|
|
|
void QPaintEngine_override_virtual_DrawPoints2(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawPoints2(void* self, QPoint* points, int pointCount);
|
|
|
|
void QPaintEngine_override_virtual_DrawPolygon(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawPolygon(void* self, QPointF* points, int pointCount, int mode);
|
|
|
|
void QPaintEngine_override_virtual_DrawPolygon2(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawPolygon2(void* self, QPoint* points, int pointCount, int mode);
|
|
|
|
void QPaintEngine_override_virtual_DrawPixmap(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawPixmap(void* self, QRectF* r, QPixmap* pm, QRectF* sr);
|
|
|
|
void QPaintEngine_override_virtual_DrawTextItem(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawTextItem(void* self, QPointF* p, QTextItem* textItem);
|
|
|
|
void QPaintEngine_override_virtual_DrawTiledPixmap(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawTiledPixmap(void* self, QRectF* r, QPixmap* pixmap, QPointF* s);
|
|
|
|
void QPaintEngine_override_virtual_DrawImage(void* self, intptr_t slot);
|
|
|
|
void QPaintEngine_virtualbase_DrawImage(void* self, QRectF* r, QImage* pm, QRectF* sr, int flags);
|
|
|
|
void QPaintEngine_override_virtual_CoordinateOffset(void* self, intptr_t slot);
|
|
|
|
QPoint* QPaintEngine_virtualbase_CoordinateOffset(const void* self);
|
|
|
|
void QPaintEngine_override_virtual_Type(void* self, intptr_t slot);
|
|
|
|
int QPaintEngine_virtualbase_Type(const void* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QPaintEngine_Delete(QPaintEngine* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintEngineState_State(const QPaintEngineState* self);
|
|
|
|
QPen* QPaintEngineState_Pen(const QPaintEngineState* self);
|
|
|
|
QBrush* QPaintEngineState_Brush(const QPaintEngineState* self);
|
|
|
|
QPointF* QPaintEngineState_BrushOrigin(const QPaintEngineState* self);
|
|
|
|
QBrush* QPaintEngineState_BackgroundBrush(const QPaintEngineState* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QPaintEngineState_BackgroundMode(const QPaintEngineState* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
QFont* QPaintEngineState_Font(const QPaintEngineState* self);
|
|
|
|
QMatrix* QPaintEngineState_Matrix(const QPaintEngineState* self);
|
|
|
|
QTransform* QPaintEngineState_Transform(const QPaintEngineState* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QPaintEngineState_ClipOperation(const QPaintEngineState* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
QRegion* QPaintEngineState_ClipRegion(const QPaintEngineState* self);
|
|
|
|
QPainterPath* QPaintEngineState_ClipPath(const QPaintEngineState* self);
|
|
|
|
bool QPaintEngineState_IsClipEnabled(const QPaintEngineState* self);
|
|
|
|
int QPaintEngineState_RenderHints(const QPaintEngineState* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QPaintEngineState_CompositionMode(const QPaintEngineState* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QPaintEngineState_Opacity(const QPaintEngineState* self);
|
|
|
|
QPainter* QPaintEngineState_Painter(const QPaintEngineState* self);
|
|
|
|
bool QPaintEngineState_BrushNeedsResolving(const QPaintEngineState* self);
|
|
|
|
bool QPaintEngineState_PenNeedsResolving(const QPaintEngineState* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QPaintEngineState_Delete(QPaintEngineState* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|