mirror of https://github.com/axmolengine/axmol.git
36 lines
680 B
C++
36 lines
680 B
C++
#ifndef __TWEENVALUE_H__
|
|
#define __TWEENVALUE_H__
|
|
|
|
#include "FairyGUIMacros.h"
|
|
#include "cocos2d.h"
|
|
|
|
NS_FGUI_BEGIN
|
|
|
|
class TweenValue
|
|
{
|
|
public:
|
|
float x;
|
|
float y;
|
|
float z;
|
|
float w;
|
|
double d;
|
|
|
|
TweenValue();
|
|
|
|
cocos2d::Vec2 getVec2() const;
|
|
void setVec2(const cocos2d::Vec2& value);
|
|
cocos2d::Vec3 getVec3() const;
|
|
void setVec3(const cocos2d::Vec3& value);
|
|
cocos2d::Vec4 getVec4() const;
|
|
void setVec4(const cocos2d::Vec4& value);
|
|
cocos2d::Color4B getColor() const;
|
|
void setColor(const cocos2d::Color4B& value);
|
|
float operator[] (int index) const;
|
|
float& operator[] (int index);
|
|
void setZero();
|
|
};
|
|
|
|
NS_FGUI_END
|
|
|
|
#endif
|