2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QSCROLLER_H
|
|
|
|
#define GEN_QSCROLLER_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QPointF;
|
|
|
|
class QRectF;
|
|
|
|
class QScroller;
|
|
|
|
class QScrollerProperties;
|
|
|
|
#else
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QPointF QPointF;
|
|
|
|
typedef struct QRectF QRectF;
|
|
|
|
typedef struct QScroller QScroller;
|
|
|
|
typedef struct QScrollerProperties QScrollerProperties;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QMetaObject* QScroller_MetaObject(QScroller* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QScroller_Tr(const char* s, char** _out, int* _out_Strlen);
|
|
|
|
void QScroller_TrUtf8(const char* s, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QScroller_HasScroller(QObject* target);
|
|
|
|
QScroller* QScroller_Scroller(QObject* target);
|
|
|
|
QScroller* QScroller_ScrollerWithTarget(QObject* target);
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QScroller_GrabGesture(QObject* target);
|
|
|
|
uintptr_t QScroller_GrabbedGesture(QObject* target);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QScroller_UngrabGesture(QObject* target);
|
|
|
|
void QScroller_ActiveScrollers(QScroller*** _out, size_t* _out_len);
|
|
|
|
QObject* QScroller_Target(QScroller* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QScroller_State(QScroller* self);
|
|
|
|
bool QScroller_HandleInput(QScroller* self, uintptr_t input, QPointF* position);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QScroller_Stop(QScroller* self);
|
|
|
|
QPointF* QScroller_Velocity(QScroller* self);
|
|
|
|
QPointF* QScroller_FinalPosition(QScroller* self);
|
|
|
|
QPointF* QScroller_PixelPerMeter(QScroller* self);
|
|
|
|
QScrollerProperties* QScroller_ScrollerProperties(QScroller* self);
|
|
|
|
void QScroller_SetSnapPositionsX(QScroller* self, double* positions, size_t positions_len);
|
|
|
|
void QScroller_SetSnapPositionsX2(QScroller* self, double first, double interval);
|
|
|
|
void QScroller_SetSnapPositionsY(QScroller* self, double* positions, size_t positions_len);
|
|
|
|
void QScroller_SetSnapPositionsY2(QScroller* self, double first, double interval);
|
|
|
|
void QScroller_SetScrollerProperties(QScroller* self, QScrollerProperties* prop);
|
|
|
|
void QScroller_ScrollTo(QScroller* self, QPointF* pos);
|
|
|
|
void QScroller_ScrollTo2(QScroller* self, QPointF* pos, int scrollTime);
|
|
|
|
void QScroller_EnsureVisible(QScroller* self, QRectF* rect, double xmargin, double ymargin);
|
|
|
|
void QScroller_EnsureVisible2(QScroller* self, QRectF* rect, double xmargin, double ymargin, int scrollTime);
|
|
|
|
void QScroller_ResendPrepareEvent(QScroller* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QScroller_StateChanged(QScroller* self, uintptr_t newstate);
|
|
|
|
void QScroller_connect_StateChanged(QScroller* self, void* slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QScroller_ScrollerPropertiesChanged(QScroller* self, QScrollerProperties* param1);
|
|
|
|
void QScroller_connect_ScrollerPropertiesChanged(QScroller* self, void* slot);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QScroller_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QScroller_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
|
|
|
void QScroller_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QScroller_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
|
|
|
uintptr_t QScroller_GrabGesture2(QObject* target, uintptr_t gestureType);
|
|
|
|
bool QScroller_HandleInput3(QScroller* self, uintptr_t input, QPointF* position, long long timestamp);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|