CCMenuItemFont Class Reference
| Inherits from | CCMenuItemLabel : CCMenuItem : CCNodeRGBA : CCNode : NSObject |
| Declared in | CCMenuItem.h |
Tasks
Other Methods
-
+ setFontSize:set default font size
-
+ fontSizeget default font size
-
+ setFontName:set default font name
-
+ fontNameget default font name
-
+ itemWithString:creates a menu item from a string without target/selector. To be used with CCMenuItemToggle
-
+ itemWithString:target:selector:creates a menu item from a string with a target/selector. The “target” won’t be retained.
-
+ itemWithString:block:creates a menu item from a string with the specified block. The block will be “copied”.
-
– initWithString:target:selector:initializes a menu item from a string with a target/selector The “target” won’t be retained.
-
– setFontSize:set font size
-
– fontSizeget font size
-
– setFontName:set the font name
-
– fontNameget the font name
-
– initWithString:block:initializes a menu item from a string with the specified block. The block will be “copied”.
Other Methods
-
+ itemFromString:creates a menu item from a string without target/selector. To be used with CCMenuItemToggle
-
+ itemFromString:target:selector:creates a menu item from a string with a target/selector
-
– initFromString:target:selector:initializes a menu item from a string with a target/selector
-
+ itemFromString:block:creates a menu item from a string with the specified block
-
– initFromString:block:initializes a menu item from a string with the specified block
Class Methods
itemFromString:
creates a menu item from a string without target/selector. To be used with CCMenuItemToggle
+ (id)itemFromString:(NSString *)valueDeclared In
CCMenuItem.hitemFromString:block:
creates a menu item from a string with the specified block
+ (id)itemFromString:(NSString *)value block:(void ( ^ ) ( id sender ))blockDeclared In
CCMenuItem.hitemFromString:target:selector:
creates a menu item from a string with a target/selector
+ (id)itemFromString:(NSString *)value target:(id)r selector:(SEL)sDeclared In
CCMenuItem.hitemWithString:
creates a menu item from a string without target/selector. To be used with CCMenuItemToggle
+ (id)itemWithString:(NSString *)valueDeclared In
CCMenuItem.hitemWithString:block:
creates a menu item from a string with the specified block. The block will be “copied”.
+ (id)itemWithString:(NSString *)value block:(void ( ^ ) ( id sender ))blockDeclared In
CCMenuItem.hInstance Methods
initFromString:block:
initializes a menu item from a string with the specified block
- (id)initFromString:(NSString *)value block:(void ( ^ ) ( id sender ))blockDeclared In
CCMenuItem.hinitFromString:target:selector:
initializes a menu item from a string with a target/selector
- (id)initFromString:(NSString *)value target:(id)r selector:(SEL)sDeclared In
CCMenuItem.hinitWithString:block:
initializes a menu item from a string with the specified block. The block will be “copied”.
- (id)initWithString:(NSString *)value block:(void ( ^ ) ( id sender ))blockDeclared In
CCMenuItem.h