cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EditBoxImpl Class Referenceabstract

#include <UIEditBoxImpl.h>

Inheritance diagram for EditBoxImpl:
EditBoxImplAndroid EditBoxImplWin UIEditBoxImplWinrt UIEditBoxImplWp8

Public Member Functions

 EditBoxImpl (EditBox *pEditBox)
 EditBoxImpl ( local pEditBox)
virtual ~EditBoxImpl ()
virtual bool initWithSize (const Size &size)=0
var initWithSize ( var size)
local initWithSize ( local size)
virtual void setFont (const char *pFontName, int fontSize)=0
var setFont ( var pFontName, var fontSize)
local setFont ( local pFontName, local fontSize)
virtual void setFontColor (const Color3B &color)=0
var setFontColor ( var color)
local setFontColor ( local color)
virtual void setPlaceholderFont (const char *pFontName, int fontSize)=0
local setPlaceholderFont ( local pFontName, local fontSize)
virtual void setPlaceholderFontColor (const Color3B &color)=0
virtual void setInputMode (EditBox::InputMode inputMode)=0
var setInputMode ( var inputMode)
local setInputMode ( local inputMode)
virtual void setInputFlag (EditBox::InputFlag inputFlag)=0
var setInputFlag ( var inputFlag)
local setInputFlag ( local inputFlag)
virtual void setMaxLength (int maxLength)=0
var setMaxLength ( var maxLength)
local setMaxLength ( local maxLength)
virtual int getMaxLength ()=0
var getMaxLength ()
local getMaxLength ()
virtual void setReturnType (EditBox::KeyboardReturnType returnType)=0
local setReturnType ( local returnType)
virtual bool isEditing ()=0
var isEditing ()
local isEditing ()
virtual void setText (const char *pText)=0
var setText ( var pText)
local setText ( local pText)
virtual const char * getText (void)=0
virtual void setPlaceHolder (const char *pText)=0
local setPlaceHolder ( local pText)
virtual void doAnimationWhenKeyboardMove (float duration, float distance)=0
virtual void openKeyboard ()=0
var openKeyboard ()
local openKeyboard ()
virtual void closeKeyboard ()=0
var closeKeyboard ()
local closeKeyboard ()
virtual void setPosition (const Vec2 &pos)=0
local setPosition ( local pos)
virtual void setVisible (bool visible)=0
var setVisible ( var visible)
local setVisible ( local visible)
virtual void setContentSize (const Size &size)=0
var setContentSize ( var size)
local setContentSize ( local size)
virtual void setAnchorPoint (const Vec2 &anchorPoint)=0
local setAnchorPoint ( local anchorPoint)
virtual void updatePosition (float dt)
 check the editbox's position, update it when needed More...
 
virtual void visit (void)=0
virtual void onEnter (void)=0
void setDelegate (EditBoxDelegate *pDelegate)
EditBoxDelegategetDelegate ()
var getDelegate ()
local getDelegate ()
EditBoxgetEditBox ()
var getEditBox ()
local getEditBox ()

Protected Attributes

EditBoxDelegate_delegate
local _delegate
EditBox_editBox
var _editBox
local _editBox

Constructor & Destructor Documentation

EditBoxImpl ( EditBox pEditBox)
inline
local EditBoxImpl ( local  pEditBox)
inline
virtual ~EditBoxImpl ( )
inlinevirtual

Member Function Documentation

virtual void closeKeyboard ( )
pure virtual
var closeKeyboard ( )
pure virtual
local closeKeyboard ( )
pure virtual
virtual void
doAnimationWhenKeyboardMove
( float  duration,
float  distance 
)
pure virtual
var doAnimationWhenKeyboardMove ( var  duration,
var  distance 
)
pure virtual
local doAnimationWhenKeyboardMove ( local  duration,
local  distance 
)
pure virtual
EditBoxDelegate* getDelegate ( )
inline
var getDelegate ( )
inline
local getDelegate ( )
inline
EditBox* getEditBox ( )
inline
var getEditBox ( )
inline
local getEditBox ( )
inline
virtual int getMaxLength ( )
pure virtual
var getMaxLength ( )
pure virtual
local getMaxLength ( )
pure virtual
virtual const char* getText ( void  )
pure virtual
var getText (   )
pure virtual
local getText (   )
pure virtual
virtual bool initWithSize ( const Size size)
pure virtual
var initWithSize ( var  size)
pure virtual
local initWithSize ( local  size)
pure virtual
virtual bool isEditing ( )
pure virtual
var isEditing ( )
pure virtual
local isEditing ( )
pure virtual
virtual void onEnter ( void  )
pure virtual
virtual void openKeyboard ( )
pure virtual
var openKeyboard ( )
pure virtual
local openKeyboard ( )
pure virtual
virtual void setAnchorPoint ( const Vec2 anchorPoint)
pure virtual
var setAnchorPoint ( var  anchorPoint)
pure virtual
local setAnchorPoint ( local  anchorPoint)
pure virtual
virtual void setContentSize ( const Size size)
pure virtual
var setContentSize ( var  size)
pure virtual
local setContentSize ( local  size)
pure virtual
void setDelegate ( EditBoxDelegate pDelegate)
inline
var setDelegate ( var  pDelegate)
inline
local setDelegate ( local  pDelegate)
inline
virtual void setFont ( const char *  pFontName,
int  fontSize 
)
pure virtual
var setFont ( var  pFontName,
var  fontSize 
)
pure virtual
local setFont ( local  pFontName,
local  fontSize 
)
pure virtual
virtual void setFontColor ( const Color3B color)
pure virtual
var setFontColor ( var  color)
pure virtual
local setFontColor ( local  color)
pure virtual
virtual void setInputFlag ( EditBox::InputFlag  inputFlag)
pure virtual
var setInputFlag ( var  inputFlag)
pure virtual
local setInputFlag ( local  inputFlag)
pure virtual
virtual void setInputMode ( EditBox::InputMode  inputMode)
pure virtual
var setInputMode ( var  inputMode)
pure virtual
local setInputMode ( local  inputMode)
pure virtual
virtual void setMaxLength ( int  maxLength)
pure virtual
var setMaxLength ( var  maxLength)
pure virtual
local setMaxLength ( local  maxLength)
pure virtual
virtual void setPlaceHolder ( const char *  pText)
pure virtual
var setPlaceHolder ( var  pText)
pure virtual
local setPlaceHolder ( local  pText)
pure virtual
virtual void setPlaceholderFont ( const char *  pFontName,
int  fontSize 
)
pure virtual
var setPlaceholderFont ( var  pFontName,
var  fontSize 
)
pure virtual
local setPlaceholderFont ( local  pFontName,
local  fontSize 
)
pure virtual
virtual void
setPlaceholderFontColor
( const Color3B color)
pure virtual
var setPlaceholderFontColor ( var  color)
pure virtual
local setPlaceholderFontColor ( local  color)
pure virtual
virtual void setPosition ( const Vec2 pos)
pure virtual
var setPosition ( var  pos)
pure virtual
local setPosition ( local  pos)
pure virtual
virtual void setReturnType ( EditBox::KeyboardReturnType  returnType)
pure virtual
var setReturnType ( var  returnType)
pure virtual
local setReturnType ( local  returnType)
pure virtual
virtual void setText ( const char *  pText)
pure virtual
var setText ( var  pText)
pure virtual
local setText ( local  pText)
pure virtual
virtual void setVisible ( bool  visible)
pure virtual
var setVisible ( var  visible)
pure virtual
local setVisible ( local  visible)
pure virtual
virtual void updatePosition ( float  dt)
inlinevirtual

check the editbox's position, update it when needed

var updatePosition ( var  dt)
inlinevirtual

check the editbox's position, update it when needed

local updatePosition ( local  dt)
inlinevirtual

check the editbox's position, update it when needed

virtual void visit ( void  )
pure virtual

Member Data Documentation

EditBoxDelegate* _delegate
protected
var _delegate
protected
local _delegate
protected
EditBox* _editBox
protected
var _editBox
protected
local _editBox
protected

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