|
cocos2d-mac
2.1
Improved Cocos2D API Reference (Mac OS X version) for www.kobold2d.com developers
|
#import <CCMenuItem.h>
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 |
A CCMenuItemFont Helper class that creates a CCMenuItemLabel class with a Label
| + (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