2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCTextFieldTTF : public CCLabelTTF
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
|
|
|
bool attachWithIME();
|
|
|
|
bool detachWithIME();
|
2012-02-02 14:26:38 +08:00
|
|
|
|
2011-06-14 14:31:25 +08:00
|
|
|
int getCharCount();
|
2012-02-02 14:26:38 +08:00
|
|
|
void setColorSpaceHolder(ccColor3B val);
|
2011-06-14 14:31:25 +08:00
|
|
|
ccColor3B getColorSpaceHolder();
|
2012-02-02 14:26:38 +08:00
|
|
|
void setString(const char *text);
|
|
|
|
const char* getString(void);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
|
|
|
void setPlaceHolder(const char * text);
|
|
|
|
const char * getPlaceHolder(void);
|
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
static CCTextFieldTTF * textFieldWithPlaceHolder(const char *placeholder, CCSize dimensions, CCTextAlignment alignment, const char *fontName, float fontSize);
|
|
|
|
static CCTextFieldTTF * textFieldWithPlaceHolder(const char *placeholder, const char *fontName, float fontSize);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|