cocos2d-iphone  1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
CCMenuItemLabel Interface Reference

#include <CCMenuItem.h>

+ Inheritance diagram for CCMenuItemLabel:
+ Collaboration diagram for CCMenuItemLabel:

List of all members.

Public Member Functions

id initWithLabel:target:selector: (CCNode< CCLabelProtocol, CCRGBAProtocol > *label,[target] id target,[selector] SEL selector)
void setString: (NSString *label)
void setIsEnabled: (BOOL enabled)

Static Public Member Functions

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

Protected Attributes

CCNode< CCLabelProtocol,
CCRGBAProtocol > * 
label_
ccColor3B colorBackup
ccColor3B disabledColor_
float originalScale_

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 CCMenuItemLabel::initWithLabel:target:selector: ( CCNode< CCLabelProtocol, CCRGBAProtocol > *  label,
[target] id  target,
[selector] SEL  selector 
) [virtual]

initializes a CCMenuItemLabel with a Label, target and selector

id CCMenuItemLabel::itemWithLabel: ( CCNode< CCLabelProtocol, CCRGBAProtocol > *  label) [static, virtual]

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

id CCMenuItemLabel::itemWithLabel:target:selector: ( CCNode< CCLabelProtocol, CCRGBAProtocol > *  label,
[target] id  target,
[selector] SEL  selector 
) [static, virtual]

creates a CCMenuItemLabel with a Label, target and selector

void CCMenuItemLabel::setIsEnabled: ( BOOL  enabled) [virtual]

Enable or disabled the CCMenuItemFont

Warning:
setIsEnabled changes the RGB color of the font

Implements CCMenuItem.

void CCMenuItemLabel::setString: ( NSString *  label) [virtual]

sets a new string to the inner label


Property Documentation

ccColor3B CCMenuItemLabel::disabledColor [read, write, assign]

the color that will be used to disable the item

CCNode<CCLabelProtocol, CCRGBAProtocol>* CCMenuItemLabel::label [read, write, assign]

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


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