cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
<CCLabelProtocol> Protocol Reference

#import <CCProtocols.h>

+ Inheritance diagram for <CCLabelProtocol>:

List of all members.

Public Member Functions

(void) - setString:
(NSString *) - string
(void) - setCString:

Detailed Description

Common interface for Labels


Member Function Documentation

- (void) setCString: (char *)  label [optional]

sets a new label using a CString. It is faster than setString since it doesn't require to alloc/retain/release an NString object.

Since:
v0.99.0
- (void) setString: (NSString *)  label

sets a new label using an NSString. The string will be copied.

Reimplemented in CCLabelTTF.

- (NSString*) string

returns the string that is rendered


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