Public Member Functions | Static Public Member Functions | Properties

CCLayerColor Class Reference

#import "CCLayer.h"

Inherits CCLayer, CCRGBAProtocol-p, and CCBlendProtocol-p.

Inherited by CCColorLayer, and CCLayerGradient.

Collaboration diagram for CCLayerColor:
[legend]

List of all members.

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

Detailed Description

CCLayerColor is a subclass of CCLayer that implements the CCRGBAProtocol protocol.

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


Member Function Documentation

- (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

Since:
v0.8
- (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


Property Documentation

- (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


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