![]() |
cocos2d-iphone
1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
|
#include <CCProtocols.h>
Public Member Functions | |
void | setString: (NSString *label) |
NSString * | string () |
void | setCString: (char *label) |
Common interface for Labels
void CCLabelProtocol-p::setCString: | ( | char * | label | ) | [optional, virtual] |
sets a new label using a CString. It is faster than setString since it doesn't require to alloc/retain/release an NString object.
void CCLabelProtocol-p::setString: | ( | NSString * | label | ) | [virtual] |
sets a new label using an NSString. The string will be copied.
Reimplemented in CCLabelTTF.
NSString* CCLabelProtocol-p::string | ( | ) | [virtual] |
returns the string that is rendered