Inherits from CCMenuItemLabel : CCMenuItem : CCNodeRGBA : CCNode : NSObject
Declared in CCMenuItem.h

Overview

A CCMenuItemFont Helper class that creates a CCMenuItemLabel class with a Label

Tasks

Other Methods

Other Methods

Class Methods

fontName

get default font name

+ (NSString *)fontName

Declared In

CCMenuItem.h

fontSize

get default font size

+ (NSUInteger)fontSize

Declared In

CCMenuItem.h

itemFromString:

creates a menu item from a string without target/selector. To be used with CCMenuItemToggle

+ (id)itemFromString:(NSString *)value

Declared In

CCMenuItem.h

itemFromString:block:

creates a menu item from a string with the specified block

+ (id)itemFromString:(NSString *)value block:(void ( ^ ) ( id sender ))block

Declared In

CCMenuItem.h

itemFromString:target:selector:

creates a menu item from a string with a target/selector

+ (id)itemFromString:(NSString *)value target:(id)r selector:(SEL)s

Declared In

CCMenuItem.h

itemWithString:

creates a menu item from a string without target/selector. To be used with CCMenuItemToggle

+ (id)itemWithString:(NSString *)value

Declared In

CCMenuItem.h

itemWithString:block:

creates a menu item from a string with the specified block. The block will be “copied”.

+ (id)itemWithString:(NSString *)value block:(void ( ^ ) ( id sender ))block

Declared In

CCMenuItem.h

itemWithString:target:selector:

creates a menu item from a string with a target/selector. The “target” won’t be retained.

+ (id)itemWithString:(NSString *)value target:(id)r selector:(SEL)s

Declared In

CCMenuItem.h

setFontName:

set default font name

+ (void)setFontName:(NSString *)n

Declared In

CCMenuItem.h

setFontSize:

set default font size

+ (void)setFontSize:(NSUInteger)s

Declared In

CCMenuItem.h

Instance Methods

fontName

get the font name

- (NSString *)fontName

Declared In

CCMenuItem.h

fontSize

get font size

- (NSUInteger)fontSize

Declared In

CCMenuItem.h

initFromString:block:

initializes a menu item from a string with the specified block

- (id)initFromString:(NSString *)value block:(void ( ^ ) ( id sender ))block

Declared In

CCMenuItem.h

initFromString:target:selector:

initializes a menu item from a string with a target/selector

- (id)initFromString:(NSString *)value target:(id)r selector:(SEL)s

Declared In

CCMenuItem.h

initWithString:block:

initializes a menu item from a string with the specified block. The block will be “copied”.

- (id)initWithString:(NSString *)value block:(void ( ^ ) ( id sender ))block

Declared In

CCMenuItem.h

initWithString:target:selector:

initializes a menu item from a string with a target/selector The “target” won’t be retained.

- (id)initWithString:(NSString *)value target:(id)r selector:(SEL)s

Declared In

CCMenuItem.h

setFontName:

set the font name

- (void)setFontName:(NSString *)n

Declared In

CCMenuItem.h

setFontSize:

set font size

- (void)setFontSize:(NSUInteger)s

Declared In

CCMenuItem.h