2011-06-14 14:31:25 +08:00
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
class CCTextFieldTTF : public CCLabelTTF
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
|
|
|
bool attachWithIME();
|
|
|
|
bool detachWithIME();
|
2011-11-09 23:23:47 +08:00
|
|
|
|
2011-06-14 14:31:25 +08:00
|
|
|
int getCharCount();
|
2011-11-09 23:23:47 +08:00
|
|
|
void setColorSpaceHolder(ccColor3B val);
|
2011-06-14 14:31:25 +08:00
|
|
|
ccColor3B getColorSpaceHolder();
|
2011-11-09 23:23:47 +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);
|
|
|
|
|
2011-11-09 23:23:47 +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
|
|
|
};
|