Skip to main content

CCLabelTTF

CCLabelTTF

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCSprite

Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCTextureProtocol, Cocos2D.ICCBlendProtocol, Cocos2D.ICCLabelProtocol

Constructors​

CCLabelTTF()

CCLabelTTF()()

CCLabelTTF(string, string, float)

CCLabelTTF(string, string, float)(System.String text, System.String fontName, System.Single fontSize)
Parameters:
text (System.String)
fontName (System.String)
fontSize (System.Single)

CCLabelTTF(string, string, float, CCSize, CCTextAlignment)

CCLabelTTF(string, string, float, CCSize, CCTextAlignment)(System.String text, System.String fontName, System.Single fontSize, Cocos2D.CCSize dimensions, Cocos2D.CCTextAlignment hAlignment)
Parameters:
text (System.String)
fontName (System.String)
fontSize (System.Single)
dimensions (Cocos2D.CCSize)
hAlignment (Cocos2D.CCTextAlignment)

CCLabelTTF(string, string, float, CCSize, CCTextAlignment, CCVerticalTextAlignment)

CCLabelTTF(string, string, float, CCSize, CCTextAlignment, CCVerticalTextAlignment)(System.String text, System.String fontName, System.Single fontSize, Cocos2D.CCSize dimensions, Cocos2D.CCTextAlignment hAlignment, Cocos2D.CCVerticalTextAlignment vAlignment)
Parameters:
text (System.String)
fontName (System.String)
fontSize (System.Single)
dimensions (Cocos2D.CCSize)
hAlignment (Cocos2D.CCTextAlignment)
vAlignment (Cocos2D.CCVerticalTextAlignment)

Fields​

m_pString(System.String)

Properties​

Dimensions(Cocos2D.CCSize)
FontName(System.String)
FontSize(System.Single)
HorizontalAlignment(Cocos2D.CCTextAlignment)
Text(System.String)
VerticalAlignment(Cocos2D.CCVerticalTextAlignment)

Methods​

Init()

System.Boolean Init()()
Returns:
System.Boolean
Example

InitWithString(string, string, float)

System.Boolean InitWithString(string, string, float)(System.String label, System.String fontName, System.Single fontSize)
Parameters:
label (System.String)
fontName (System.String)
fontSize (System.Single)
Returns:
System.Boolean

InitWithString(string, string, float, CCSize, CCTextAlignment)

System.Boolean InitWithString(string, string, float, CCSize, CCTextAlignment)(System.String label, System.String fontName, System.Single fontSize, Cocos2D.CCSize dimensions, Cocos2D.CCTextAlignment alignment)
Parameters:
label (System.String)
fontName (System.String)
fontSize (System.Single)
dimensions (Cocos2D.CCSize)
alignment (Cocos2D.CCTextAlignment)
Returns:
System.Boolean

InitWithString(string, string, float, CCSize, CCTextAlignment, CCVerticalTextAlignment)

System.Boolean InitWithString(string, string, float, CCSize, CCTextAlignment, CCVerticalTextAlignment)(System.String text, System.String fontName, System.Single fontSize, Cocos2D.CCSize dimensions, Cocos2D.CCTextAlignment hAlignment, Cocos2D.CCVerticalTextAlignment vAlignment)
Parameters:
text (System.String)
fontName (System.String)
fontSize (System.Single)
dimensions (Cocos2D.CCSize)
hAlignment (Cocos2D.CCTextAlignment)
vAlignment (Cocos2D.CCVerticalTextAlignment)
Returns:
System.Boolean

ToString()

System.String ToString()()
Returns:
System.String
Example