CCLayerColor
CCLayerColor
Cocos2DInheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCLayer → Cocos2D.CCLayerRGBA
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCAccelerometerDelegate, Cocos2D.ICCRGBAProtocol, Cocos2D.ICCBlendProtocol
Constructors
CCLayerColor()
CCLayerColor()()CCLayerColor(CCColor4B)
CCLayerColor(CCColor4B)(Cocos2D.CCColor4B color)Parameters:
color (Cocos2D.CCColor4B)CCLayerColor(CCColor4B, float, float)
CCLayerColor(CCColor4B, float, float)(Cocos2D.CCColor4B color, System.Single width, System.Single height)Parameters:
color (Cocos2D.CCColor4B)width (System.Single)height (System.Single)Fields
m_pSquareVertices(Microsoft.Xna.Framework.Graphics.VertexPositionColor[])
m_tBlendFunc(Cocos2D.CCBlendFunc)
Properties
BlendFunc(Cocos2D.CCBlendFunc)
Color(Cocos2D.CCColor3B)
ContentSize(Cocos2D.CCSize)
Opacity(System.Byte)
Methods
ChangeHeight(float)
ChangeHeight(float)(System.Single h)Parameters:
h (System.Single)ChangeWidth(float)
ChangeWidth(float)(System.Single w)Parameters:
w (System.Single)ChangeWidthAndHeight(float, float)
ChangeWidthAndHeight(float, float)(System.Single w, System.Single h)Parameters:
w (System.Single)h (System.Single)Draw()
Draw()()Example
Init()
System.Boolean Init()()Returns:
System.BooleanExample
InitWithColor(CCColor4B)
System.Boolean InitWithColor(CCColor4B)(Cocos2D.CCColor4B color)Parameters:
color (Cocos2D.CCColor4B)Returns:
System.BooleanInitWithColor(CCColor4B, float, float)
System.Boolean InitWithColor(CCColor4B, float, float)(Cocos2D.CCColor4B color, System.Single width, System.Single height)Parameters:
color (Cocos2D.CCColor4B)width (System.Single)height (System.Single)Returns:
System.BooleanUpdateColor()
UpdateColor()()