Label Class Reference

#import <Label.h>

Inherits TextureNode.

Collaboration diagram for Label:

Collaboration graph
[legend]

List of all members.

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:


Detailed Description

Label is a subclass of TextureNode that knows how to render text labels

All features from TextureNode are valid in Label


Member Function Documentation

- (id) initWithString: (NSString *)  string
dimensions: (CGSize)  dimensions
alignment: (UITextAlignment)  alignment
fontName: (NSString *)  name
fontSize: (CGFloat)  size 

initializes the label with a font name, alignment, dimension and font size

- (id) initWithString: (NSString *)  string
fontName: (NSString *)  name
fontSize: (CGFloat)  size 

initializes the label 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 label from a fontname, alignment, dimension and font size

+ (id) labelWithString: (NSString *)  string
fontName: (NSString *)  name
fontSize: (CGFloat)  size 

creates a label from a fontname and font size

- (void) setString: (NSString *)  string  

changes the string to render

Warning:
Changing the string is as expensive as creating a new Label. To obtain better performance use LabelAtlas


The documentation for this class was generated from the following file:

Generated on Tue Jun 9 10:39:38 2009 for cocos2d for iPhone 0.7.3 by  doxygen 1.5.8