cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCMenuItemFont Class Reference

#import <CCMenuItem.h>

+ Inheritance diagram for CCMenuItemFont:
+ Collaboration diagram for CCMenuItemFont:

List of all members.

Public Member Functions

(id) - initWithString:target:selector:
(void) - setFontSize:
(NSUInteger) - fontSize
(void) - setFontName:
(NSString *) - fontName
(id) - initWithString:block:
(id) - initFromString:target:selector:
(id) - initFromString:block:

Static Public Member Functions

(void) + setFontSize:
(NSUInteger) + fontSize
(void) + setFontName:
(NSString *) + fontName
(id) + itemWithString:
(id) + itemWithString:target:selector:
(id) + itemWithString:block:
(id) + itemFromString:
(id) + itemFromString:target:selector:
(id) + itemFromString:block:

Protected Attributes

NSUInteger _fontSize
NSString * _fontName

Detailed Description

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


Member Function Documentation

+ (NSString*) fontName

get default font name

- (NSString*) fontName

get the font name

+ (NSUInteger) fontSize

get default font size

- (NSUInteger) fontSize

get font size

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

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

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

initializes a menu item from a string with a target/selector The "target" won't be retained.

+ (id) itemWithString: (NSString *)  value

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

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

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

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

creates a menu item from a string with a target/selector. The "target" won't be retained.

+ (void) setFontName: (NSString *)  n

set default font name

- (void) setFontName: (NSString *)  n

set the font name

+ (void) setFontSize: (NSUInteger)  s

set default font size

- (void) setFontSize: (NSUInteger)  s

set font size


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