mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
57 lines
1.6 KiB
C++
57 lines
1.6 KiB
C++
#ifndef GEN_QPICTURE_H
|
|
#define GEN_QPICTURE_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#include "../libmiqt/libmiqt.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QIODevice;
|
|
class QPaintEngine;
|
|
class QPainter;
|
|
class QPicture;
|
|
class QRect;
|
|
#else
|
|
typedef struct QIODevice QIODevice;
|
|
typedef struct QPaintEngine QPaintEngine;
|
|
typedef struct QPainter QPainter;
|
|
typedef struct QPicture QPicture;
|
|
typedef struct QRect QRect;
|
|
#endif
|
|
|
|
QPicture* QPicture_new();
|
|
QPicture* QPicture_new2(QPicture* param1);
|
|
QPicture* QPicture_new3(int formatVersion);
|
|
bool QPicture_IsNull(const QPicture* self);
|
|
int QPicture_DevType(const QPicture* self);
|
|
unsigned int QPicture_Size(const QPicture* self);
|
|
const char* QPicture_Data(const QPicture* self);
|
|
void QPicture_SetData(QPicture* self, const char* data, unsigned int size);
|
|
bool QPicture_Play(QPicture* self, QPainter* p);
|
|
bool QPicture_Load(QPicture* self, QIODevice* dev);
|
|
bool QPicture_LoadWithFileName(QPicture* self, struct miqt_string fileName);
|
|
bool QPicture_Save(QPicture* self, QIODevice* dev);
|
|
bool QPicture_SaveWithFileName(QPicture* self, struct miqt_string fileName);
|
|
QRect* QPicture_BoundingRect(const QPicture* self);
|
|
void QPicture_SetBoundingRect(QPicture* self, QRect* r);
|
|
void QPicture_OperatorAssign(QPicture* self, QPicture* p);
|
|
void QPicture_Swap(QPicture* self, QPicture* other);
|
|
void QPicture_Detach(QPicture* self);
|
|
bool QPicture_IsDetached(const QPicture* self);
|
|
QPaintEngine* QPicture_PaintEngine(const QPicture* self);
|
|
void QPicture_Delete(QPicture* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|