Files
cocos4/native/cocos/editor-support/cocosbuilder/CCNode+CCBRelativePositioning.h
T
2016-08-04 17:30:55 +08:00

15 lines
531 B
C++

#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__