2020-08-04 12:31:33 +08:00
|
|
|
#ifndef __GTWEEN_H__
|
|
|
|
#define __GTWEEN_H__
|
|
|
|
|
|
|
|
#include "FairyGUIMacros.h"
|
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "GTweener.h"
|
|
|
|
#include "EaseType.h"
|
|
|
|
#include "TweenValue.h"
|
|
|
|
#include "TweenPropType.h"
|
|
|
|
|
|
|
|
NS_FGUI_BEGIN
|
|
|
|
|
|
|
|
class GTween
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static GTweener* to(float startValue, float endValue, float duration);
|
2022-07-11 17:50:21 +08:00
|
|
|
static GTweener* to(const axis::Vec2& startValue, const axis::Vec2& endValue, float duration);
|
|
|
|
static GTweener* to(const axis::Vec3& startValue, const axis::Vec3& endValue, float duration);
|
|
|
|
static GTweener* to(const axis::Vec4& startValue, const axis::Vec4& endValue, float duration);
|
|
|
|
static GTweener* to(const axis::Color4B& startValue, const axis::Color4B& endValue, float duration);
|
2020-08-04 12:31:33 +08:00
|
|
|
static GTweener* toDouble(double startValue, double endValue, float duration);
|
|
|
|
static GTweener* delayedCall(float delay);
|
2022-07-11 17:50:21 +08:00
|
|
|
static GTweener* shake(const axis::Vec2& startValue, float amplitude, float duration);
|
|
|
|
static bool isTweening(axis::Ref* target);
|
|
|
|
static bool isTweening(axis::Ref* target, TweenPropType propType);
|
|
|
|
static void kill(axis::Ref* target);
|
|
|
|
static void kill(axis::Ref* target, bool complete);
|
|
|
|
static void kill(axis::Ref* target, TweenPropType propType, bool complete);
|
|
|
|
static GTweener* getTween(axis::Ref* target);
|
|
|
|
static GTweener* getTween(axis::Ref* target, TweenPropType propType);
|
2020-08-04 12:31:33 +08:00
|
|
|
static void clean();
|
|
|
|
};
|
|
|
|
|
|
|
|
NS_FGUI_END
|
|
|
|
|
|
|
|
#endif
|