#import "CCLayer.h"
Inherits CCLayer, CCRGBAProtocol-p, and CCBlendProtocol-p.
Inherited by CCColorLayer, and CCLayerGradient.
Public Member Functions | |
| (void) | - changeHeight: |
| (void) | - changeWidth: |
| (void) | - changeWidth:height: |
| (id) | - initWithColor: |
| (id) | - initWithColor:width:height: |
Static Public Member Functions | |
| (id) | + layerWithColor: |
| (id) | + layerWithColor:width:height: |
Properties | |
| ccBlendFunc | blendFunc |
| ccColor3B | color |
| GLubyte | opacity |
CCLayerColor is a subclass of CCLayer that implements the CCRGBAProtocol protocol.
All features from CCLayer are valid, plus the following new features:
| - (void) changeHeight: | (GLfloat) | h |
change height in Points
| - (void) changeWidth: | (GLfloat) | w |
change width in Points
| - (void) changeWidth: | (GLfloat) | w | ||
| height: | (GLfloat) | h | ||
change width and height in Points
| - (id) initWithColor: | (ccColor4B) | color |
initializes a CCLayer with color. Width and height are the window size.
| - (id) initWithColor: | (ccColor4B) | color | ||
| width: | (GLfloat) | w | ||
| height: | (GLfloat) | h | ||
initializes a CCLayer with color, width and height in Points
| + (id) layerWithColor: | (ccColor4B) | color |
creates a CCLayer with color. Width and height are the window size.
| + (id) layerWithColor: | (ccColor4B) | color | ||
| width: | (GLfloat) | w | ||
| height: | (GLfloat) | h | ||
creates a CCLayer with color, width and height in Points
- (ccBlendFunc) blendFunc [read, write, assign] |
BlendFunction. Conforms to CCBlendProtocol protocol
- (ccColor3B) color [read, assign] |
Opacity: conforms to CCRGBAProtocol protocol
- (GLubyte) opacity [read, assign] |
Opacity: conforms to CCRGBAProtocol protocol
1.7.1