ColorLayer Class Reference

#import <Layer.h>

Inherits Layer, CocosNodeOpacity-p, CocosNodeRGB-p, and CocosNodeSize-p.

Collaboration diagram for ColorLayer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithColor:width:height:
(id) - initWithColor:
(void) - initWidth:height:
(void) - changeColor:
(void) - changeWidth:
(void) - changeHeight:

Static Public Member Functions

(id) + layerWithColor:width:height:
(id) + layerWithColor:

Properties

GLubyte r


Detailed Description

ColorLayer is a subclass of Layer that implements the CocosNodeSize, CocosNodeOpacity and CocosNodeRGB protocol.

All features from Layer are valid, plus the following new features:


Member Function Documentation

- (void) changeColor:  

changes the color of the layer

Deprecated:
Use CocosNodeRGB protocol instead

- (void) changeHeight: (GLfloat)  h  

change height

- (void) changeWidth: (GLfloat)  w  

change width

- (void) initWidth: (GLfloat)  w
height: (GLfloat)  h 

initializes the witdh and height of the layer

- (id) initWithColor: (GLuint)  aColor  

initializes a Layer with color. Width and height are the window size.

- (id) initWithColor: (GLuint)  aColor
width: (GLint)  w
height: (GLint)  h 

initializes a Layer with color, width and height

+ (id) layerWithColor: (GLuint)  aColor  

creates the layer with color. Width and height are the window size.

+ (id) layerWithColor: (GLuint)  aColor
width: (GLfloat)  w
height: (GLfloat)  h 

creates the Layer with color, width and height


Property Documentation

- (GLubyte) r [read, assign]

conforms to CocosNodeRGB and CocosNodeOpacity protocol


The documentation for this class was generated from the following file:

Generated on Tue Jun 9 10:39:33 2009 for cocos2d for iPhone 0.7.3 by  doxygen 1.5.8