cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
Public Member Functions | Static Public Member Functions | Properties
CCMenuItemLabel Class Reference

#import <CCMenuItem.h>

Inheritance diagram for CCMenuItemLabel:
Inheritance graph
[legend]
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:
(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 105 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

creates a CCMenuItemLabel with a Label. Target and selector will be nill

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

Implements CCMenuItem.

- (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 115 of file CCMenuItem.h.

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

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

Definition at line 118 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 API Reference - Generated using Doxygen 1.7.4