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:
[legend]

List of all members.

Public Member Functions

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

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:


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

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

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


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