MenuItemFont Class Reference

#import <MenuItem.h>

Inherits MenuItem.

Collaboration diagram for MenuItemFont:

Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initFromString:target:selector:
(void) - setString:
(void) - setIsEnabled:

Static Public Member Functions

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


Detailed Description

A MenuItemFont

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. Use it with MenuItemToggle

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

- (void) setIsEnabled: (BOOL)  enabled  

Enable or disabled the MenuItemFont

Warning:
setIsEnabled changes the RGB color of the font

Implements MenuItem.

- (void) setString: (NSString *)  string  

Change this menuitem's label's string


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

Generated on Tue Jun 9 10:39:39 2009 for cocos2d for iPhone 0.7.3 by  doxygen 1.5.8