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

15 lines
531 B
C
Raw Normal View History

#ifndef __CCB_CCNODE_RELATIVEPOSITIONING_H__
#define __CCB_CCNODE_RELATIVEPOSITIONING_H__
#include "editor-support/cocosbuilder/CCBReader.h"
namespace cocosbuilder {
extern CC_DLL cocos2d::Vec2 getAbsolutePosition(const cocos2d::Vec2 &pt, CCBReader::PositionType type, const cocos2d::Size &containerSize, const std::string&propName);
extern CC_DLL void setRelativeScale(cocos2d::Node *node, float scaleX, float scaleY, CCBReader::ScaleType type, const std::string& propName);
}
#endif // __CCB_CCNODE_RELATIVEPOSITIONING_H__