2012-09-17 14:27:17 +08:00
|
|
|
#ifndef __CCB_CCNODE_RELATIVEPOSITIONING_H__
|
|
|
|
#define __CCB_CCNODE_RELATIVEPOSITIONING_H__
|
|
|
|
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "editor-support/cocosbuilder/CCBReader.h"
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
namespace cocosbuilder {
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2014-08-27 10:18:44 +08:00
|
|
|
extern CC_DLL cocos2d::Vec2 getAbsolutePosition(const cocos2d::Vec2 &pt, CCBReader::PositionType type, const cocos2d::Size &containerSize, const std::string&propName);
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2014-08-27 10:18:44 +08:00
|
|
|
extern CC_DLL void setRelativeScale(cocos2d::Node *node, float scaleX, float scaleY, CCBReader::ScaleType type, const std::string& propName);
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
}
|
2012-09-17 14:27:17 +08:00
|
|
|
|
|
|
|
#endif // __CCB_CCNODE_RELATIVEPOSITIONING_H__
|