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

#include <CCEditBoxImpl.h>

Inheritance diagram for EditBoxImpl:
EditBoxImplAndroid EditBoxImplWin

Public Member Functions

 EditBoxImpl (EditBox *pEditBox)
 EditBoxImpl ( local pEditBox)
virtual ~EditBoxImpl ()
virtual bool initWithSize (const Size &size)=0
local initWithSize ( local size)
virtual void setFont (const char *pFontName, int fontSize)=0
local setFont ( local pFontName, local fontSize)
virtual void setFontColor (const Color3B &color)=0
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
virtual void setInputFlag (EditBox::InputFlag inputFlag)=0
local setInputFlag ( local inputFlag)
virtual void setMaxLength (int maxLength)=0
local setMaxLength ( local maxLength)
virtual int getMaxLength ()=0
virtual void setReturnType (EditBox::KeyboardReturnType returnType)=0
local setReturnType ( local returnType)
virtual bool isEditing ()=0
virtual void setText (const char *pText)=0
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
local doAnimationWhenKeyboardMove ( local duration, local distance)
virtual void openKeyboard ()=0
virtual void closeKeyboard ()=0
local closeKeyboard ()
virtual void setPosition (const Point &pos)=0
local setPosition ( local pos)
virtual void setVisible (bool visible)=0
local setVisible ( local visible)
virtual void setContentSize (const Size &size)=0
local setContentSize ( local size)
virtual void setAnchorPoint (const Point &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)
var setDelegate ( var pDelegate)
local setDelegate ( local pDelegate)
EditBoxDelegategetDelegate ()
var getDelegate ()
EditBoxgetEditBox ()

Protected Attributes

EditBoxDelegate_delegate
local _delegate
EditBox_editBox

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void closeKeyboard ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var closeKeyboard ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local closeKeyboard ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void
doAnimationWhenKeyboardMove
( float  duration,
float  distance 
)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var doAnimationWhenKeyboardMove ( var  duration,
var  distance 
)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local doAnimationWhenKeyboardMove ( local  duration,
local  distance 
)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

EditBoxDelegate* getDelegate ( )
inline
var getDelegate ( )
inline
local getDelegate ( )
inline
EditBox* getEditBox ( )
inline
var getEditBox ( )
inline
local getEditBox ( )
inline
virtual int getMaxLength ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var getMaxLength ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local getMaxLength ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual const char* getText ( void  )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var getText (   )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local getText (   )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual bool initWithSize ( const Size size)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var initWithSize ( var  size)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local initWithSize ( local  size)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual bool isEditing ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var isEditing ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local isEditing ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void onEnter ( void  )
pure virtual

Implemented in EditBoxImplWin, and EditBoxImplAndroid.

virtual void openKeyboard ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var openKeyboard ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local openKeyboard ( )
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setAnchorPoint ( const Point anchorPoint)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setAnchorPoint ( var  anchorPoint)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setAnchorPoint ( local  anchorPoint)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setContentSize ( const Size size)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setContentSize ( var  size)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setContentSize ( local  size)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

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

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setFont ( var  pFontName,
var  fontSize 
)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setFont ( local  pFontName,
local  fontSize 
)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setFontColor ( const Color3B color)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setFontColor ( var  color)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setFontColor ( local  color)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setInputFlag ( EditBox::InputFlag  inputFlag)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setInputFlag ( var  inputFlag)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setInputFlag ( local  inputFlag)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setInputMode ( EditBox::InputMode  inputMode)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setInputMode ( var  inputMode)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setInputMode ( local  inputMode)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setMaxLength ( int  maxLength)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setMaxLength ( var  maxLength)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setMaxLength ( local  maxLength)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setPlaceHolder ( const char *  pText)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setPlaceHolder ( var  pText)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setPlaceHolder ( local  pText)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setPlaceholderFont ( const char *  pFontName,
int  fontSize 
)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setPlaceholderFont ( var  pFontName,
var  fontSize 
)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setPlaceholderFont ( local  pFontName,
local  fontSize 
)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void
setPlaceholderFontColor
( const Color3B color)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setPlaceholderFontColor ( var  color)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setPlaceholderFontColor ( local  color)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setPosition ( const Point pos)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setPosition ( var  pos)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setPosition ( local  pos)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setReturnType ( EditBox::KeyboardReturnType  returnType)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setReturnType ( var  returnType)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setReturnType ( local  returnType)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setText ( const char *  pText)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setText ( var  pText)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setText ( local  pText)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

virtual void setVisible ( bool  visible)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

var setVisible ( var  visible)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

local setVisible ( local  visible)
pure virtual

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

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

Implemented in EditBoxImplAndroid, and EditBoxImplWin.

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: