Public Member Functions | Static Public Member Functions

CCMenuItemFont Class Reference

#import <CCMenuItem.h>

Inherits CCMenuItemLabel.

Collaboration diagram for CCMenuItemFont:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initFromString:target:selector:

Static Public Member Functions

(void) + setFontSize:
(int) + fontSize
(void) + setFontName:
(NSString *) + fontName
(id) + itemFromString:
(id) + itemFromString:target:selector:

Detailed Description

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

Definition at line 164 of file CCMenuItem.h.


Member Function Documentation

+ (NSString*) fontName  

get the font name

+ (int) fontSize  

get font size

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

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

+ (id) itemFromString: (NSString *)  value  

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

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

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

+ (void) setFontName: (NSString *)  n  

set the font name

+ (void) setFontSize: (int)  s  

set font size


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone 0.99.4 API Reference - Generated using Doxygen 1.7.1