axmol/cocos/editor-support/cocosbuilder/CCNode+CCBRelativePositioni...

15 lines
495 B
C
Raw Normal View History

#ifndef __CCB_CCNODE_RELATIVEPOSITIONING_H__
#define __CCB_CCNODE_RELATIVEPOSITIONING_H__
#include "CCBReader.h"
namespace cocosbuilder {
2014-04-15 18:08:29 +08:00
extern cocos2d::Vector2 getAbsolutePosition(const cocos2d::Vector2 &pt, CCBReader::PositionType type, const cocos2d::Size &containerSize, const std::string&propName);
extern void setRelativeScale(cocos2d::Node *node, float scaleX, float scaleY, CCBReader::ScaleType type, const std::string& propName);
}
#endif // __CCB_CCNODE_RELATIVEPOSITIONING_H__