MenuItemImage Class Reference

#import <MenuItem.h>

Inherits MenuItem.

Collaboration diagram for MenuItemImage:

Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initFromNormalImage:selectedImage:disabledImage:target:selector:

Static Public Member Functions

(id) + itemFromNormalImage:selectedImage:
(id) + itemFromNormalImage:selectedImage:target:selector:
(id) + itemFromNormalImage:selectedImage:disabledImage:target:selector:

Properties

SpritenormalImage
 Sprite (image) that is displayed when the MenuItem is not selected.
SpriteselectedImage
 Sprite (image) that is displayed when the MenuItem is selected.
SpritedisabledImage
 Sprite (image) that is displayed when the MenuItem is disabled.


Detailed Description

A MenuItemImage

Member Function Documentation

- (id) initFromNormalImage: (NSString *)  value
selectedImage: (NSString *)  value2
disabledImage: (NSString *)  value3
target: (id)  r
selector: (SEL)  s 

initializes a menu item with a normal, selected and disabled image with target/selector

+ (id) itemFromNormalImage: (NSString *)  value
selectedImage: (NSString *)  value2 

creates a menu item with a normal and selected image

+ (id) itemFromNormalImage: (NSString *)  value
selectedImage: (NSString *)  value2
disabledImage: (NSString *)  value3
target: (id)  r
selector: (SEL)  s 

creates a menu item with a normal,selected and disabled image with target/selector

+ (id) itemFromNormalImage: (NSString *)  value
selectedImage: (NSString *)  value2
target: (id)  r
selector: (SEL)  s 

creates a menu item with a normal and selected image with target/selector


Property Documentation

- (Sprite *) disabledImage [read, assign]

Sprite (image) that is displayed when the MenuItem is disabled.

- (Sprite *) normalImage [read, assign]

Sprite (image) that is displayed when the MenuItem is not selected.

- (Sprite *) selectedImage [read, assign]

Sprite (image) that is displayed when the MenuItem is selected.


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