#import <CCLabel.h>
Inherits CCSprite, and CCLabelProtocol-p.

Public Member Functions | |
| (id) | - initWithString:dimensions:alignment:fontName:fontSize: |
| (id) | - initWithString:fontName:fontSize: |
| (void) | - setString: |
Static Public Member Functions | |
| (id) | + labelWithString:dimensions:alignment:fontName:fontSize: |
| (id) | + labelWithString:fontName:fontSize: |
CCLabel is a subclass of CCTextureNode that knows how to render text labels
All features from CCTextureNode are valid in CCLabel
CCLabel objects are slow. Consider using CCLabelAtlas or CCBitmapFontAtlas instead.
Definition at line 36 of file CCLabel.h.
| - (id) initWithString: | (NSString *) | string | ||
| dimensions: | (CGSize) | dimensions | ||
| alignment: | (UITextAlignment) | alignment | ||
| fontName: | (NSString *) | name | ||
| fontSize: | (CGFloat) | size | ||
initializes the CCLabel with a font name, alignment, dimension and font size
| - (id) initWithString: | (NSString *) | string | ||
| fontName: | (NSString *) | name | ||
| fontSize: | (CGFloat) | size | ||
initializes the CCLabel with a font name and font size
| + (id) labelWithString: | (NSString *) | string | ||
| dimensions: | (CGSize) | dimensions | ||
| alignment: | (UITextAlignment) | alignment | ||
| fontName: | (NSString *) | name | ||
| fontSize: | (CGFloat) | size | ||
creates a CCLabel from a fontname, alignment, dimension and font size
| + (id) labelWithString: | (NSString *) | string | ||
| fontName: | (NSString *) | name | ||
| fontSize: | (CGFloat) | size | ||
creates a CCLabel from a fontname and font size
| - (void) setString: | (NSString *) | str |
changes the string to render
Reimplemented from <CCLabelProtocol>.