您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
/** creates a fullscreen black layer */ static LayerColor* create(); /** creates a Layer with color, width and height in Points */ static LayerColor * create(const Color4B& color, GLfloat width, GLfloat height); /** creates a Layer with color. Width and height are the window size. */ static LayerColor * create(const Color4B& color); CC_CONSTRUCTOR_ACCESS: LayerColor(); virtual ~LayerColor(); bool init(); bool initWithColor(const Color4B& color, GLfloat width, GLfloat height); bool initWithColor(const Color4B& color);
/** Creates a fullscreen black layer */ static LayerGradient* create(); /** Creates a full-screen Layer with a gradient between start and end. */ static LayerGradient* create(const Color4B& start, const Color4B& end); /** Creates a full-screen Layer with a gradient between start and end in the direction of v. */ static LayerGradient* create(const Color4B& start, const Color4B& end, const Point& v); CC_CONSTRUCTOR_ACCESS: LayerGradient(); virtual ~LayerGradient(); virtual bool init(); /** Initializes the Layer with a gradient between start and end. * @js init * @lua init */ bool initWithColor(const Color4B& start, const Color4B& end); /** Initializes the Layer with a gradient between start and end in the direction of v. * @js init * @lua init */ bool initWithColor(const Color4B& start, const Color4B& end, const Point& v);
/** change width in Points*/ void changeWidth(GLfloat w); /** change height in Points*/ void changeHeight(GLfloat h); /** change width and height in Points @since v0.8 */ void changeWidthAndHeight(GLfloat w ,GLfloat h);
// Create a "close" menu item with close icon, it's an auto release object. MenuItemImage *pCloseItem = MenuItemImage::create( "CloseNormal.png",//普通状态下的图片 "CloseSelected.png",//按下状态下的图片 CC_CALLBACK_1(HelloWorld::menuCloseCallback, this));//响应函数与对象 CC_BREAK_IF(! pCloseItem);
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。