1 static CCLayerColor* create(const ccColor4B& color); 2 static CCLayerColor* create(const ccColor4B& color, GLfloat width, GLfloat height); 3 bool initWithColor(const ccColor4B& color); 4 bool initWithColor(const ccColor4B& color, GLfloat width, GLfloat height);
1 static CCLayerGradient* create(const ccColor4B& start, const ccColor4B& end); 2 static CCLayerGradient* create(const ccColor4B& start, const ccColor4B& end, const CCPoint& v); 3 bool initWithColor(const ccColor4B& start, const ccColor4B& end); 4 bool initWithColor(const ccColor4B& start, const ccColor4B& end, const CCPoint& v);
1 void changeWidth(GLfloat w); 2 void changeHeight(GLfloat h); 3 void changeWidthAndHeight(GLfloat w, GLfloat h);
1 CCMenuItemImage::create( 2 "CloseNormal.png", //普通状态下的图片 3 "CloseSelected.png", //按下状态下的图片 4 this, //响应对象 5 menu_selector(HelloWorld::menuCloseCallback)); //响应函数
原文:http://www.cnblogs.com/Blogs-young-chan/p/5223466.html