2012-09-17 14:27:17 +08:00
|
|
|
#ifndef __CCB_CCNODE_RELATIVEPOSITIONING_H__
|
|
|
|
#define __CCB_CCNODE_RELATIVEPOSITIONING_H__
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
2013-07-27 21:44:49 +08:00
|
|
|
#include "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
|
|
|
|
2013-12-09 17:45:24 +08:00
|
|
|
extern cocos2d::Point getAbsolutePosition(const cocos2d::Point &pt, CCBReader::PositionType type, const cocos2d::Size &containerSize, const std::string&propName);
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2013-12-09 17:45:24 +08:00
|
|
|
extern 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__
|