Files
wnmj-normal/cocos2d/cocos/editor-support/cocosbuilder/CCNode+CCBRelativePositioning.h

15 lines
503 B
C
Raw Normal View History

2026-03-03 13:56:44 +08:00
#ifndef __CCB_CCNODE_RELATIVEPOSITIONING_H__
#define __CCB_CCNODE_RELATIVEPOSITIONING_H__
#include "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__