[AUTO]: updating luabinding automatically

This commit is contained in:
CocosRobot 2014-08-14 02:30:08 +00:00
parent a88504b153
commit e2857097d6
3 changed files with 200 additions and 34 deletions

View File

@ -19,6 +19,11 @@
-- @param self -- @param self
-- @return string#string ret (return value: string) -- @return string#string ret (return value: string)
--------------------------------
-- @function [parent=#TextField] setPasswordStyleText
-- @param self
-- @param #char char
-------------------------------- --------------------------------
-- @function [parent=#TextField] getDeleteBackward -- @function [parent=#TextField] getDeleteBackward
-- @param self -- @param self
@ -92,6 +97,11 @@
-- @param self -- @param self
-- @param #bool bool -- @param #bool bool
--------------------------------
-- @function [parent=#TextField] getPlaceHolderColor
-- @param self
-- @return color4b_table#color4b_table ret (return value: color4b_table)
-------------------------------- --------------------------------
-- @function [parent=#TextField] getPasswordStyleText -- @function [parent=#TextField] getPasswordStyleText
-- @param self -- @param self
@ -103,9 +113,9 @@
-- @param #bool bool -- @param #bool bool
-------------------------------- --------------------------------
-- @function [parent=#TextField] setPasswordStyleText -- @function [parent=#TextField] isPasswordEnabled
-- @param self -- @param self
-- @param #char char -- @return bool#bool ret (return value: bool)
-------------------------------- --------------------------------
-- @function [parent=#TextField] setDeleteBackward -- @function [parent=#TextField] setDeleteBackward
@ -123,15 +133,22 @@
-- @param #string str -- @param #string str
-------------------------------- --------------------------------
-- @function [parent=#TextField] isPasswordEnabled -- @overload self, color4b_table
-- @overload self, color3b_table
-- @function [parent=#TextField] setPlaceHolderColor
-- @param self -- @param self
-- @return bool#bool ret (return value: bool) -- @param #color3b_table color3b
-------------------------------- --------------------------------
-- @function [parent=#TextField] setTextHorizontalAlignment -- @function [parent=#TextField] setTextHorizontalAlignment
-- @param self -- @param self
-- @param #int texthalignment -- @param #int texthalignment
--------------------------------
-- @function [parent=#TextField] setTextColor
-- @param self
-- @param #color4b_table color4b
-------------------------------- --------------------------------
-- @function [parent=#TextField] getMaxLength -- @function [parent=#TextField] getMaxLength
-- @param self -- @param self

View File

@ -13233,6 +13233,52 @@ int lua_cocos2dx_ui_TextField_getStringValue(lua_State* tolua_S)
return 0; return 0;
} }
int lua_cocos2dx_ui_TextField_setPasswordStyleText(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::TextField* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_TextField_setPasswordStyleText'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
const char* arg0;
std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ccui.TextField:setPasswordStyleText"); arg0 = arg0_tmp.c_str();
if(!ok)
return 0;
cobj->setPasswordStyleText(arg0);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.TextField:setPasswordStyleText",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_TextField_setPasswordStyleText'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_TextField_getDeleteBackward(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getDeleteBackward(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
@ -13907,6 +13953,50 @@ int lua_cocos2dx_ui_TextField_setPasswordEnabled(lua_State* tolua_S)
return 0; return 0;
} }
int lua_cocos2dx_ui_TextField_getPlaceHolderColor(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::TextField* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_TextField_getPlaceHolderColor'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
const cocos2d::Color4B& ret = cobj->getPlaceHolderColor();
color4b_to_luaval(tolua_S, ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.TextField:getPlaceHolderColor",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_TextField_getPlaceHolderColor'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_TextField_getPasswordStyleText(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getPasswordStyleText(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
@ -13997,7 +14087,7 @@ int lua_cocos2dx_ui_TextField_setMaxLengthEnabled(lua_State* tolua_S)
return 0; return 0;
} }
int lua_cocos2dx_ui_TextField_setPasswordStyleText(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_isPasswordEnabled(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
cocos2d::ui::TextField* cobj = nullptr; cocos2d::ui::TextField* cobj = nullptr;
@ -14017,28 +14107,26 @@ int lua_cocos2dx_ui_TextField_setPasswordStyleText(lua_State* tolua_S)
#if COCOS2D_DEBUG >= 1 #if COCOS2D_DEBUG >= 1
if (!cobj) if (!cobj)
{ {
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_TextField_setPasswordStyleText'", nullptr); tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_TextField_isPasswordEnabled'", nullptr);
return 0; return 0;
} }
#endif #endif
argc = lua_gettop(tolua_S)-1; argc = lua_gettop(tolua_S)-1;
if (argc == 1) if (argc == 0)
{ {
const char* arg0;
std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ccui.TextField:setPasswordStyleText"); arg0 = arg0_tmp.c_str();
if(!ok) if(!ok)
return 0; return 0;
cobj->setPasswordStyleText(arg0); bool ret = cobj->isPasswordEnabled();
return 0; tolua_pushboolean(tolua_S,(bool)ret);
return 1;
} }
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.TextField:setPasswordStyleText",argc, 1); CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.TextField:isPasswordEnabled",argc, 0);
return 0; return 0;
#if COCOS2D_DEBUG >= 1 #if COCOS2D_DEBUG >= 1
tolua_lerror: tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_TextField_setPasswordStyleText'.",&tolua_err); tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_TextField_isPasswordEnabled'.",&tolua_err);
#endif #endif
return 0; return 0;
@ -14181,46 +14269,55 @@ int lua_cocos2dx_ui_TextField_setPlaceHolder(lua_State* tolua_S)
return 0; return 0;
} }
int lua_cocos2dx_ui_TextField_isPasswordEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setPlaceHolderColor(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
cocos2d::ui::TextField* cobj = nullptr; cocos2d::ui::TextField* cobj = nullptr;
bool ok = true; bool ok = true;
#if COCOS2D_DEBUG >= 1 #if COCOS2D_DEBUG >= 1
tolua_Error tolua_err; tolua_Error tolua_err;
#endif #endif
#if COCOS2D_DEBUG >= 1 #if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror;
#endif #endif
cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1 #if COCOS2D_DEBUG >= 1
if (!cobj) if (!cobj)
{ {
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_TextField_isPasswordEnabled'", nullptr); tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_TextField_setPlaceHolderColor'", nullptr);
return 0; return 0;
} }
#endif #endif
argc = lua_gettop(tolua_S)-1; argc = lua_gettop(tolua_S)-1;
if (argc == 0) do{
{ if (argc == 1) {
if(!ok) cocos2d::Color4B arg0;
ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.TextField:setPlaceHolderColor");
if (!ok) { break; }
cobj->setPlaceHolderColor(arg0);
return 0; return 0;
bool ret = cobj->isPasswordEnabled();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
} }
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.TextField:isPasswordEnabled",argc, 0); }while(0);
ok = true;
do{
if (argc == 1) {
cocos2d::Color3B arg0;
ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.TextField:setPlaceHolderColor");
if (!ok) { break; }
cobj->setPlaceHolderColor(arg0);
return 0;
}
}while(0);
ok = true;
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.TextField:setPlaceHolderColor",argc, 1);
return 0; return 0;
#if COCOS2D_DEBUG >= 1 #if COCOS2D_DEBUG >= 1
tolua_lerror: tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_TextField_isPasswordEnabled'.",&tolua_err); tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_TextField_setPlaceHolderColor'.",&tolua_err);
#endif #endif
return 0; return 0;
@ -14271,6 +14368,52 @@ int lua_cocos2dx_ui_TextField_setTextHorizontalAlignment(lua_State* tolua_S)
return 0; return 0;
} }
int lua_cocos2dx_ui_TextField_setTextColor(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::TextField* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_TextField_setTextColor'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
cocos2d::Color4B arg0;
ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.TextField:setTextColor");
if(!ok)
return 0;
cobj->setTextColor(arg0);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccui.TextField:setTextColor",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_TextField_setTextColor'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_TextField_getMaxLength(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getMaxLength(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
@ -14812,6 +14955,7 @@ int lua_register_cocos2dx_ui_TextField(lua_State* tolua_S)
tolua_function(tolua_S,"setAttachWithIME",lua_cocos2dx_ui_TextField_setAttachWithIME); tolua_function(tolua_S,"setAttachWithIME",lua_cocos2dx_ui_TextField_setAttachWithIME);
tolua_function(tolua_S,"getFontSize",lua_cocos2dx_ui_TextField_getFontSize); tolua_function(tolua_S,"getFontSize",lua_cocos2dx_ui_TextField_getFontSize);
tolua_function(tolua_S,"getStringValue",lua_cocos2dx_ui_TextField_getStringValue); tolua_function(tolua_S,"getStringValue",lua_cocos2dx_ui_TextField_getStringValue);
tolua_function(tolua_S,"setPasswordStyleText",lua_cocos2dx_ui_TextField_setPasswordStyleText);
tolua_function(tolua_S,"getDeleteBackward",lua_cocos2dx_ui_TextField_getDeleteBackward); tolua_function(tolua_S,"getDeleteBackward",lua_cocos2dx_ui_TextField_getDeleteBackward);
tolua_function(tolua_S,"getPlaceHolder",lua_cocos2dx_ui_TextField_getPlaceHolder); tolua_function(tolua_S,"getPlaceHolder",lua_cocos2dx_ui_TextField_getPlaceHolder);
tolua_function(tolua_S,"getAttachWithIME",lua_cocos2dx_ui_TextField_getAttachWithIME); tolua_function(tolua_S,"getAttachWithIME",lua_cocos2dx_ui_TextField_getAttachWithIME);
@ -14827,14 +14971,16 @@ int lua_register_cocos2dx_ui_TextField(lua_State* tolua_S)
tolua_function(tolua_S,"attachWithIME",lua_cocos2dx_ui_TextField_attachWithIME); tolua_function(tolua_S,"attachWithIME",lua_cocos2dx_ui_TextField_attachWithIME);
tolua_function(tolua_S,"getStringLength",lua_cocos2dx_ui_TextField_getStringLength); tolua_function(tolua_S,"getStringLength",lua_cocos2dx_ui_TextField_getStringLength);
tolua_function(tolua_S,"setPasswordEnabled",lua_cocos2dx_ui_TextField_setPasswordEnabled); tolua_function(tolua_S,"setPasswordEnabled",lua_cocos2dx_ui_TextField_setPasswordEnabled);
tolua_function(tolua_S,"getPlaceHolderColor",lua_cocos2dx_ui_TextField_getPlaceHolderColor);
tolua_function(tolua_S,"getPasswordStyleText",lua_cocos2dx_ui_TextField_getPasswordStyleText); tolua_function(tolua_S,"getPasswordStyleText",lua_cocos2dx_ui_TextField_getPasswordStyleText);
tolua_function(tolua_S,"setMaxLengthEnabled",lua_cocos2dx_ui_TextField_setMaxLengthEnabled); tolua_function(tolua_S,"setMaxLengthEnabled",lua_cocos2dx_ui_TextField_setMaxLengthEnabled);
tolua_function(tolua_S,"setPasswordStyleText",lua_cocos2dx_ui_TextField_setPasswordStyleText); tolua_function(tolua_S,"isPasswordEnabled",lua_cocos2dx_ui_TextField_isPasswordEnabled);
tolua_function(tolua_S,"setDeleteBackward",lua_cocos2dx_ui_TextField_setDeleteBackward); tolua_function(tolua_S,"setDeleteBackward",lua_cocos2dx_ui_TextField_setDeleteBackward);
tolua_function(tolua_S,"setFontSize",lua_cocos2dx_ui_TextField_setFontSize); tolua_function(tolua_S,"setFontSize",lua_cocos2dx_ui_TextField_setFontSize);
tolua_function(tolua_S,"setPlaceHolder",lua_cocos2dx_ui_TextField_setPlaceHolder); tolua_function(tolua_S,"setPlaceHolder",lua_cocos2dx_ui_TextField_setPlaceHolder);
tolua_function(tolua_S,"isPasswordEnabled",lua_cocos2dx_ui_TextField_isPasswordEnabled); tolua_function(tolua_S,"setPlaceHolderColor",lua_cocos2dx_ui_TextField_setPlaceHolderColor);
tolua_function(tolua_S,"setTextHorizontalAlignment",lua_cocos2dx_ui_TextField_setTextHorizontalAlignment); tolua_function(tolua_S,"setTextHorizontalAlignment",lua_cocos2dx_ui_TextField_setTextHorizontalAlignment);
tolua_function(tolua_S,"setTextColor",lua_cocos2dx_ui_TextField_setTextColor);
tolua_function(tolua_S,"getMaxLength",lua_cocos2dx_ui_TextField_getMaxLength); tolua_function(tolua_S,"getMaxLength",lua_cocos2dx_ui_TextField_getMaxLength);
tolua_function(tolua_S,"isMaxLengthEnabled",lua_cocos2dx_ui_TextField_isMaxLengthEnabled); tolua_function(tolua_S,"isMaxLengthEnabled",lua_cocos2dx_ui_TextField_isMaxLengthEnabled);
tolua_function(tolua_S,"setDetachWithIME",lua_cocos2dx_ui_TextField_setDetachWithIME); tolua_function(tolua_S,"setDetachWithIME",lua_cocos2dx_ui_TextField_setDetachWithIME);

View File

@ -398,6 +398,9 @@ int register_all_cocos2dx_ui(lua_State* tolua_S);