MenuItemAtlasFont Class Reference

#import <MenuItem.h>

Inherits MenuItem.

Collaboration diagram for MenuItemAtlasFont:

Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initFromString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector:
(void) - setString:
(void) - setIsEnabled:

Static Public Member Functions

(id) + itemFromString:charMapFile:itemWidth:itemHeight:startCharMap:
(id) + itemFromString:charMapFile:itemWidth:itemHeight:startCharMap:target:selector:


Detailed Description

A MenuItemAtlasFont

Member Function Documentation

- (id) initFromString: (NSString *)  value
charMapFile: (NSString *)  charMapFile
itemWidth: (int)  itemWidth
itemHeight: (int)  itemHeight
startCharMap: (char)  startCharMap
target: (id)  rec
selector: (SEL)  cb 

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

+ (id) itemFromString: (NSString *)  value
charMapFile: (NSString *)  charMapFile
itemWidth: (int)  itemWidth
itemHeight: (int)  itemHeight
startCharMap: (char)  startCharMap 

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

+ (id) itemFromString: (NSString *)  value
charMapFile: (NSString *)  charMapFile
itemWidth: (int)  itemWidth
itemHeight: (int)  itemHeight
startCharMap: (char)  startCharMap
target: (id)  rec
selector: (SEL)  cb 

creates a menu item from a string and atlas. Use it with MenuItemToggle

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