#import "CCMenuItem.h"
Inherits CCMenuItem, and CCRGBAProtocol-p.
Public Member Functions | |
(id) | - initWithTarget:selector:items:vaList: |
(CCMenuItem *) | - selectedItem |
Static Public Member Functions | |
(id) | + itemWithTarget:selector:items: |
Properties | |
ccColor3B | color |
GLubyte | opacity |
NSUInteger | selectedIndex |
NSMutableArray * | subItems |
A CCMenuItemToggle A simple container class that "toggles" it's inner items The inner itmes can be any MenuItem
- (id) initWithTarget: | (id) | t | ||
selector: | (SEL) | s | ||
items: | (CCMenuItem *) | item | ||
vaList: | (va_list) | args | ||
initializes a menu item from a list of items with a target selector
+ (id) itemWithTarget: | (id) | t | ||
selector: | (SEL) | s | ||
items: | (CCMenuItem *) | item | ||
, | NS_REQUIRES_NIL_TERMINATION | |||
creates a menu item from a list of items with a target/selector
- (CCMenuItem*) selectedItem |
return the selected item
- (ccColor3B) color [read, assign] |
conforms with CCRGBAProtocol protocol
- (GLubyte) opacity [read, assign] |
conforms with CCRGBAProtocol protocol
- (NSUInteger) selectedIndex [read, write, assign] |
returns the selected item
- (NSMutableArray*) subItems [read, write, retain] |
NSMutableArray that contains the subitems. You can add/remove items in runtime, and you can replace the array with a new one.