Files
cocos4/native/cocos/editor-support/dragonbones/geom/Rectangle.h
T
2016-08-29 18:39:30 +08:00

48 lines
749 B
C++

#ifndef DRAGONBONES_RECTANGLE_H
#define DRAGONBONES_RECTANGLE_H
#include "../core/DragonBones.h"
DRAGONBONES_NAMESPACE_BEGIN
/**
* @private
*/
class Rectangle final
{
public:
float x;
float y;
float width;
float height;
Rectangle():
x(0.f),
y(0.f),
width(0.f),
height(0.f)
{
}
Rectangle(const Rectangle& value)
{
operator=(value);
}
~Rectangle() {}
inline void operator=(const Rectangle& value)
{
x = value.x;
y = value.y;
width = value.width;
height = value.height;
}
void clear()
{
x = y = 0.f;
width = height = 0.f;
}
};
DRAGONBONES_NAMESPACE_END
#endif // DRAGONBONES_RECTANGLE_H