2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QDRAG_H
|
|
|
|
#define GEN_QDRAG_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 QDrag;
|
|
|
|
class QMetaObject;
|
|
|
|
class QMimeData;
|
|
|
|
class QObject;
|
|
|
|
class QPixmap;
|
|
|
|
class QPoint;
|
|
|
|
#else
|
|
|
|
typedef struct QDrag QDrag;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QMimeData QMimeData;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QPixmap QPixmap;
|
|
|
|
typedef struct QPoint QPoint;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QDrag* QDrag_new(QObject* dragSource);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QDrag_MetaObject(const QDrag* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QDrag_Tr(const char* s);
|
|
|
|
struct miqt_string* QDrag_TrUtf8(const char* s);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDrag_SetMimeData(QDrag* self, QMimeData* data);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMimeData* QDrag_MimeData(const QDrag* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDrag_SetPixmap(QDrag* self, QPixmap* pixmap);
|
2024-09-11 05:41:09 +00:00
|
|
|
QPixmap* QDrag_Pixmap(const QDrag* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDrag_SetHotSpot(QDrag* self, QPoint* hotspot);
|
2024-09-11 05:41:09 +00:00
|
|
|
QPoint* QDrag_HotSpot(const QDrag* self);
|
|
|
|
QObject* QDrag_Source(const QDrag* self);
|
|
|
|
QObject* QDrag_Target(const QDrag* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QDrag_Start(QDrag* self);
|
|
|
|
uintptr_t QDrag_Exec(QDrag* self);
|
|
|
|
uintptr_t QDrag_Exec2(QDrag* self, int supportedActions, uintptr_t defaultAction);
|
|
|
|
void QDrag_SetDragCursor(QDrag* self, QPixmap* cursor, uintptr_t action);
|
2024-09-11 05:41:09 +00:00
|
|
|
QPixmap* QDrag_DragCursor(const QDrag* self, uintptr_t action);
|
|
|
|
int QDrag_SupportedActions(const QDrag* self);
|
|
|
|
uintptr_t QDrag_DefaultAction(const QDrag* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDrag_Cancel();
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDrag_ActionChanged(QDrag* self, uintptr_t action);
|
|
|
|
void QDrag_connect_ActionChanged(QDrag* self, void* slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDrag_TargetChanged(QDrag* self, QObject* newTarget);
|
|
|
|
void QDrag_connect_TargetChanged(QDrag* self, void* slot);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QDrag_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string* QDrag_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string* QDrag_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string* QDrag_TrUtf83(const char* s, const char* c, int n);
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QDrag_Start1(QDrag* self, int supportedActions);
|
|
|
|
uintptr_t QDrag_Exec1(QDrag* self, int supportedActions);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDrag_Delete(QDrag* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|