2024-08-25 04:08:24 +00:00
|
|
|
#include <QBitmap>
|
|
|
|
#include <QCursor>
|
|
|
|
#include <QPixmap>
|
|
|
|
#include <QPoint>
|
|
|
|
#include <QScreen>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qcursor.h"
|
|
|
|
#include "gen_qcursor.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QCursor* QCursor_new() {
|
|
|
|
return new QCursor();
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QCursor* QCursor_new2(int shape) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QCursor(static_cast<Qt::CursorShape>(shape));
|
|
|
|
}
|
|
|
|
|
|
|
|
QCursor* QCursor_new3(QBitmap* bitmap, QBitmap* mask) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QCursor(*bitmap, *mask);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QCursor* QCursor_new4(QPixmap* pixmap) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QCursor(*pixmap);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QCursor* QCursor_new5(QCursor* cursor) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QCursor(*cursor);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QCursor* QCursor_new6(QBitmap* bitmap, QBitmap* mask, int hotX) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QCursor(*bitmap, *mask, static_cast<int>(hotX));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QCursor* QCursor_new7(QBitmap* bitmap, QBitmap* mask, int hotX, int hotY) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QCursor(*bitmap, *mask, static_cast<int>(hotX), static_cast<int>(hotY));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QCursor* QCursor_new8(QPixmap* pixmap, int hotX) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QCursor(*pixmap, static_cast<int>(hotX));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QCursor* QCursor_new9(QPixmap* pixmap, int hotX, int hotY) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QCursor(*pixmap, static_cast<int>(hotX), static_cast<int>(hotY));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCursor_OperatorAssign(QCursor* self, QCursor* cursor) {
|
|
|
|
self->operator=(*cursor);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCursor_Swap(QCursor* self, QCursor* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QCursor_Shape(const QCursor* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::CursorShape _ret = self->shape();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QCursor_SetShape(QCursor* self, int newShape) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setShape(static_cast<Qt::CursorShape>(newShape));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QBitmap* QCursor_Bitmap(const QCursor* self) {
|
|
|
|
return (QBitmap*) self->bitmap();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QBitmap* QCursor_Mask(const QCursor* self) {
|
|
|
|
return (QBitmap*) self->mask();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QBitmap* QCursor_BitmapWithQtReturnByValueConstant(const QCursor* self, int param1) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QBitmap(self->bitmap(static_cast<Qt::ReturnByValueConstant>(param1)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QBitmap* QCursor_MaskWithQtReturnByValueConstant(const QCursor* self, int param1) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QBitmap(self->mask(static_cast<Qt::ReturnByValueConstant>(param1)));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPixmap* QCursor_Pixmap(const QCursor* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPixmap(self->pixmap());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPoint* QCursor_HotSpot(const QCursor* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPoint(self->hotSpot());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QPoint* QCursor_Pos() {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPoint(QCursor::pos());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QPoint* QCursor_PosWithScreen(QScreen* screen) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPoint(QCursor::pos(screen));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QCursor_SetPos(int x, int y) {
|
|
|
|
QCursor::setPos(static_cast<int>(x), static_cast<int>(y));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCursor_SetPos2(QScreen* screen, int x, int y) {
|
|
|
|
QCursor::setPos(screen, static_cast<int>(x), static_cast<int>(y));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCursor_SetPosWithQPoint(QPoint* p) {
|
|
|
|
QCursor::setPos(*p);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCursor_SetPos3(QScreen* screen, QPoint* p) {
|
|
|
|
QCursor::setPos(screen, *p);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QCursor_Delete(QCursor* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|