Public Member Functions | Static Public Member Functions | Properties

CCMenuItemLabel Class Reference

#import <CCMenuItem.h>

Inherits CCMenuItem, and CCRGBAProtocol-p.

Inherited by CCMenuItemAtlasFont, and CCMenuItemFont.

Collaboration diagram for CCMenuItemLabel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithLabel:target:selector:
(void) - setString:
(void) - setIsEnabled:

Static Public Member Functions

(id) + itemWithLabel:target:selector:

Properties

ccColor3B disabledColor
CCNode< CCLabelProtocol,
CCRGBAProtocol > * 
label

Detailed Description

An abstract class for "label" CCMenuItemLabel items Any CCNode that supports the CCLabelProtocol protocol can be added. Supported nodes:

Definition at line 97 of file CCMenuItem.h.


Member Function Documentation

- (id) initWithLabel: (CCNode< CCLabelProtocol, CCRGBAProtocol > *)  label
target: (id)  target
selector: (SEL)  selector 

initializes a CCMenuItemLabel with a Label, target and selector

+ (id) itemWithLabel: (CCNode< CCLabelProtocol, CCRGBAProtocol > *)  label
target: (id)  target
selector: (SEL)  selector 

creates a CCMenuItemLabel with a Label, target and selector

- (void) setIsEnabled: (BOOL)  enabled  

Enable or disabled the CCMenuItemFont

Warning:
setIsEnabled changes the RGB color of the font
- (void) setString: (NSString *)  label  

sets a new string to the inner label


Property Documentation

- (ccColor3B) disabledColor [read, write, assign]

the color that will be used to disable the item

Definition at line 107 of file CCMenuItem.h.

- (CCNode<CCLabelProtocol, CCRGBAProtocol>*) label [read, write, retain]

Label that is rendered. It can be any CCNode that implements the CCLabelProtocol

Definition at line 110 of file CCMenuItem.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone 0.99.4 API Reference - Generated using Doxygen 1.7.1