CCTextFieldTTF
CCTextFieldTTF
Cocos2DInheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCSprite → Cocos2D.CCLabelTTF
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCTextureProtocol, Cocos2D.ICCBlendProtocol, Cocos2D.ICCLabelProtocol, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCTouchDelegate
Constructors
CCTextFieldTTF(string, string, float)
CCTextFieldTTF(string, string, float)(System.String text, System.String fontName, System.Single fontSize)
Parameters:
text
(System.String)fontName
(System.String)fontSize
(System.Single)CCTextFieldTTF(string, string, float, CCSize, CCTextAlignment)
CCTextFieldTTF(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)CCTextFieldTTF(string, string, float, CCSize, CCTextAlignment, CCVerticalTextAlignment)
CCTextFieldTTF(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)Properties
AutoEdit(System.Boolean)
EditDescription(System.String)
EditTitle(System.String)
ReadOnly(System.Boolean)
Methods
DoBeginEditing(ref string, ref bool)
DoBeginEditing(ref string, ref bool)(System.String newText, System.Boolean canceled)
Parameters:
newText
(System.String)canceled
(System.Boolean)DoEndEditing(ref string, ref bool)
DoEndEditing(ref string, ref bool)(System.String newText, System.Boolean canceled)
Parameters:
newText
(System.String)canceled
(System.Boolean)Edit()
Edit()()
Edit(string, string)
Edit(string, string)(System.String title, System.String defaultText)
Parameters:
title
(System.String)defaultText
(System.String)EndEdit()
EndEdit()()
HandleKeyboardInput()
HandleKeyboardInput()()
OnEnter()
OnEnter()()
Example
OnExit()
OnExit()()
Example
TouchBegan(CCTouch)
System.Boolean TouchBegan(CCTouch)(Cocos2D.CCTouch pTouch)
Returns true signaling that this node will consume the touch.
Parameters:
pTouch
(Cocos2D.CCTouch)Returns:
System.Boolean
Example
TouchCancelled(CCTouch)
TouchCancelled(CCTouch)(Cocos2D.CCTouch pTouch)
Parameters:
pTouch
(Cocos2D.CCTouch)Example
TouchEnded(CCTouch)
TouchEnded(CCTouch)(Cocos2D.CCTouch pTouch)
Parameters:
pTouch
(Cocos2D.CCTouch)Example
TouchMoved(CCTouch)
TouchMoved(CCTouch)(Cocos2D.CCTouch pTouch)
Parameters:
pTouch
(Cocos2D.CCTouch)Example
Update(float)
Update(float)(System.Single dt)
Parameters:
dt
(System.Single)Example
Events
BeginEditing(Event)
EndEditing(Event)