2012-09-17 14:27:17 +08:00
|
|
|
#ifndef __CCB_CCNODE_RELATIVEPOSITIONING_H__
|
|
|
|
#define __CCB_CCNODE_RELATIVEPOSITIONING_H__
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "ExtensionMacros.h"
|
2013-07-27 21:44:49 +08:00
|
|
|
#include "CCBReader.h"
|
2012-09-17 14:27:17 +08:00
|
|
|
|
|
|
|
NS_CC_EXT_BEGIN
|
|
|
|
|
2013-07-27 21:44:49 +08:00
|
|
|
extern Point getAbsolutePosition(const Point &pt, CCBReader::PositionType type, const Size &containerSize, const char *propName);
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2013-07-27 21:44:49 +08:00
|
|
|
extern void setRelativeScale(Node *node, float scaleX, float scaleY, CCBReader::ScaleType type, const char* propName);
|
2012-09-17 14:27:17 +08:00
|
|
|
|
|
|
|
NS_CC_EXT_END
|
|
|
|
|
|
|
|
#endif // __CCB_CCNODE_RELATIVEPOSITIONING_H__
|