2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QEASINGCURVE_H
|
|
|
|
#define GEN_QEASINGCURVE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QEasingCurve;
|
|
|
|
class QPointF;
|
|
|
|
#else
|
|
|
|
typedef struct QEasingCurve QEasingCurve;
|
|
|
|
typedef struct QPointF QPointF;
|
|
|
|
#endif
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QEasingCurve* QEasingCurve_new();
|
|
|
|
QEasingCurve* QEasingCurve_new2(QEasingCurve* other);
|
|
|
|
QEasingCurve* QEasingCurve_new3(uintptr_t typeVal);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QEasingCurve_OperatorAssign(QEasingCurve* self, QEasingCurve* other);
|
|
|
|
void QEasingCurve_Swap(QEasingCurve* self, QEasingCurve* other);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QEasingCurve_OperatorEqual(const QEasingCurve* self, QEasingCurve* other);
|
|
|
|
bool QEasingCurve_OperatorNotEqual(const QEasingCurve* self, QEasingCurve* other);
|
|
|
|
double QEasingCurve_Amplitude(const QEasingCurve* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QEasingCurve_SetAmplitude(QEasingCurve* self, double amplitude);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QEasingCurve_Period(const QEasingCurve* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QEasingCurve_SetPeriod(QEasingCurve* self, double period);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QEasingCurve_Overshoot(const QEasingCurve* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QEasingCurve_SetOvershoot(QEasingCurve* self, double overshoot);
|
|
|
|
void QEasingCurve_AddCubicBezierSegment(QEasingCurve* self, QPointF* c1, QPointF* c2, QPointF* endPoint);
|
|
|
|
void QEasingCurve_AddTCBSegment(QEasingCurve* self, QPointF* nextPoint, double t, double c, double b);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QEasingCurve_ToCubicSpline(const QEasingCurve* self, QPointF*** _out, size_t* _out_len);
|
|
|
|
uintptr_t QEasingCurve_Type(const QEasingCurve* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QEasingCurve_SetType(QEasingCurve* self, uintptr_t typeVal);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QEasingCurve_ValueForProgress(const QEasingCurve* self, double progress);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QEasingCurve_Delete(QEasingCurve* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|