Merge pull request #6623 from CocosRobot/update_lua_bindings_1399528933

[AUTO]: updating luabinding automatically
This commit is contained in:
James Chen 2014-05-08 14:29:54 +08:00
commit 32438a88cd
9 changed files with 709 additions and 2 deletions

View File

@ -0,0 +1,12 @@
--------------------------------
-- @module EventFocus
-- @extend Event
--------------------------------
-- @function [parent=#EventFocus] EventFocus
-- @param self
-- @param #ccui.Widget widget
-- @param #ccui.Widget widget
return nil

View File

@ -0,0 +1,16 @@
--------------------------------
-- @module EventListenerFocus
-- @extend EventListener
--------------------------------
-- @function [parent=#EventListenerFocus] clone
-- @param self
-- @return EventListenerFocus#EventListenerFocus ret (return value: cc.EventListenerFocus)
--------------------------------
-- @function [parent=#EventListenerFocus] checkAvailable
-- @param self
-- @return bool#bool ret (return value: bool)
return nil

View File

@ -18,6 +18,11 @@
-- @param self
-- @param #ccui.LayoutBackGroundColorType layoutbackgroundcolortype
--------------------------------
-- @function [parent=#Layout] setLoopFocus
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#Layout] setBackGroundImageColor
-- @param self
@ -33,6 +38,11 @@
-- @param self
-- @return LayoutClippingType#LayoutClippingType ret (return value: ccui.LayoutClippingType)
--------------------------------
-- @function [parent=#Layout] isLoopFocus
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#Layout] removeBackGroundImage
-- @param self
@ -117,6 +127,11 @@
-- @param self
-- @return unsigned char#unsigned char ret (return value: unsigned char)
--------------------------------
-- @function [parent=#Layout] isPassFocusToChild
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#Layout] setBackGroundImageCapInsets
-- @param self
@ -132,6 +147,11 @@
-- @param self
-- @return LayoutType#LayoutType ret (return value: ccui.LayoutType)
--------------------------------
-- @function [parent=#Layout] setPassFocusToChild
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#Layout] getBackGroundStartColor
-- @param self
@ -188,6 +208,13 @@
-- @function [parent=#Layout] sortAllChildren
-- @param self
--------------------------------
-- @function [parent=#Layout] findNextFocusedWidget
-- @param self
-- @param #ccui.FocusDirection focusdirection
-- @param #ccui.Widget widget
-- @return Widget#Widget ret (return value: ccui.Widget)
--------------------------------
-- @function [parent=#Layout] removeChild
-- @param self

View File

@ -43,6 +43,11 @@
-- @param self
-- @return size_table#size_table ret (return value: size_table)
--------------------------------
-- @function [parent=#Widget] setHighlighted
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#Widget] setPositionType
-- @param self
@ -63,6 +68,11 @@
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @function [parent=#Widget] isHighlighted
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#Widget] getLayoutParameter
-- @param self
@ -100,6 +110,13 @@
-- @param self
-- @return size_table#size_table ret (return value: size_table)
--------------------------------
-- @function [parent=#Widget] findNextFocusedWidget
-- @param self
-- @param #ccui.FocusDirection focusdirection
-- @param #ccui.Widget widget
-- @return Widget#Widget ret (return value: ccui.Widget)
--------------------------------
-- @function [parent=#Widget] isTouchEnabled
-- @param self
@ -174,6 +191,11 @@
-- @param self
-- @return vector2_table#vector2_table ret (return value: vector2_table)
--------------------------------
-- @function [parent=#Widget] setFocusEnabled
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#Widget] setActionTag
-- @param self
@ -190,11 +212,21 @@
-- @param #vector2_table array
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#Widget] getCurrentFocusedWidget
-- @param self
-- @param #bool bool
-- @return Widget#Widget ret (return value: ccui.Widget)
--------------------------------
-- @function [parent=#Widget] getTopInParent
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @function [parent=#Widget] requestFocus
-- @param self
--------------------------------
-- overload function: updateSizeAndPosition(size_table)
--
@ -267,6 +299,11 @@
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#Widget] isFocusEnabled
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#Widget] create
-- @param self

View File

@ -131,6 +131,16 @@
-- @field [parent=#cc] EventListenerCustom#EventListenerCustom EventListenerCustom preloaded module
--------------------------------------------------------
-- the cc EventFocus
-- @field [parent=#cc] EventFocus#EventFocus EventFocus preloaded module
--------------------------------------------------------
-- the cc EventListenerFocus
-- @field [parent=#cc] EventListenerFocus#EventListenerFocus EventListenerFocus preloaded module
--------------------------------------------------------
-- the cc Action
-- @field [parent=#cc] Action#Action Action preloaded module

View File

@ -16042,6 +16042,84 @@ int lua_register_cocos2dx_EventListenerCustom(lua_State* tolua_S)
return 1;
}
int lua_cocos2dx_EventFocus_constructor(lua_State* tolua_S)
{
int argc = 0;
cocos2d::EventFocus* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 2)
{
cocos2d::ui::Widget* arg0;
cocos2d::ui::Widget* arg1;
ok &= luaval_to_object<cocos2d::ui::Widget>(tolua_S, 2, "ccui.Widget",&arg0);
ok &= luaval_to_object<cocos2d::ui::Widget>(tolua_S, 3, "ccui.Widget",&arg1);
if(!ok)
return 0;
cobj = new cocos2d::EventFocus(arg0, arg1);
cobj->autorelease();
int ID = (int)cobj->_ID ;
int* luaID = &cobj->_luaID ;
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventFocus");
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "EventFocus",argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventFocus_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_cocos2dx_EventFocus_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (EventFocus)");
return 0;
}
int lua_register_cocos2dx_EventFocus(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"cc.EventFocus");
tolua_cclass(tolua_S,"EventFocus","cc.EventFocus","cc.Event",nullptr);
tolua_beginmodule(tolua_S,"EventFocus");
tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::EventFocus).name();
g_luaType[typeName] = "cc.EventFocus";
g_typeCast["EventFocus"] = "cc.EventFocus";
return 1;
}
static int lua_cocos2dx_EventListenerFocus_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (EventListenerFocus)");
return 0;
}
int lua_register_cocos2dx_EventListenerFocus(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"cc.EventListenerFocus");
tolua_cclass(tolua_S,"EventListenerFocus","cc.EventListenerFocus","cc.EventListener",nullptr);
tolua_beginmodule(tolua_S,"EventListenerFocus");
tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::EventListenerFocus).name();
g_luaType[typeName] = "cc.EventListenerFocus";
g_typeCast["EventListenerFocus"] = "cc.EventListenerFocus";
return 1;
}
int lua_cocos2dx_Action_startWithTarget(lua_State* tolua_S)
{
int argc = 0;
@ -65285,7 +65363,7 @@ TOLUA_API int register_all_cocos2dx(lua_State* tolua_S)
lua_register_cocos2dx_RotateTo(tolua_S);
lua_register_cocos2dx_TransitionSplitRows(tolua_S);
lua_register_cocos2dx_TransitionProgressRadialCCW(tolua_S);
lua_register_cocos2dx_ScaleTo(tolua_S);
lua_register_cocos2dx_EventListenerFocus(tolua_S);
lua_register_cocos2dx_TransitionPageTurn(tolua_S);
lua_register_cocos2dx_BezierBy(tolua_S);
lua_register_cocos2dx_BezierTo(tolua_S);
@ -65294,13 +65372,15 @@ TOLUA_API int register_all_cocos2dx(lua_State* tolua_S)
lua_register_cocos2dx_ActionManager(tolua_S);
lua_register_cocos2dx_TransitionFade(tolua_S);
lua_register_cocos2dx_TransitionZoomFlipX(tolua_S);
lua_register_cocos2dx_EventFocus(tolua_S);
lua_register_cocos2dx_EaseQuinticActionInOut(tolua_S);
lua_register_cocos2dx_SpriteFrameCache(tolua_S);
lua_register_cocos2dx_TransitionCrossFade(tolua_S);
lua_register_cocos2dx_Ripple3D(tolua_S);
lua_register_cocos2dx_Lens3D(tolua_S);
lua_register_cocos2dx_EaseQuarticActionInOut(tolua_S);
lua_register_cocos2dx_ScaleTo(tolua_S);
lua_register_cocos2dx_Spawn(tolua_S);
lua_register_cocos2dx_EaseQuarticActionInOut(tolua_S);
lua_register_cocos2dx_ShakyTiles3D(tolua_S);
lua_register_cocos2dx_PageTurn3D(tolua_S);
lua_register_cocos2dx_TransitionSlideInL(tolua_S);

View File

@ -1559,6 +1559,9 @@ int register_all_cocos2dx(lua_State* tolua_S);

View File

@ -1173,6 +1173,52 @@ int lua_cocos2dx_ui_Widget_getLayoutSize(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Widget_setHighlighted(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Widget* 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.Widget",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_setHighlighted'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0);
if(!ok)
return 0;
cobj->setHighlighted(arg0);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setHighlighted",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_setHighlighted'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Widget_setPositionType(lua_State* tolua_S)
{
int argc = 0;
@ -1351,6 +1397,50 @@ int lua_cocos2dx_ui_Widget_getBottomInParent(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Widget_isHighlighted(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Widget* 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.Widget",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_isHighlighted'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
bool ret = cobj->isHighlighted();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isHighlighted",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_isHighlighted'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Widget_getLayoutParameter(lua_State* tolua_S)
{
int argc = 0;
@ -1665,6 +1755,56 @@ int lua_cocos2dx_ui_Widget_getVirtualRendererSize(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Widget_findNextFocusedWidget(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Widget* 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.Widget",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_findNextFocusedWidget'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 2)
{
cocos2d::ui::FocusDirection arg0;
cocos2d::ui::Widget* arg1;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
ok &= luaval_to_object<cocos2d::ui::Widget>(tolua_S, 3, "ccui.Widget",&arg1);
if(!ok)
return 0;
cocos2d::ui::Widget* ret = cobj->findNextFocusedWidget(arg0, arg1);
object_to_luaval<cocos2d::ui::Widget>(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "findNextFocusedWidget",argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_findNextFocusedWidget'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Widget_isTouchEnabled(lua_State* tolua_S)
{
int argc = 0;
@ -2336,6 +2476,52 @@ int lua_cocos2dx_ui_Widget_getTouchStartPos(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Widget_setFocusEnabled(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Widget* 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.Widget",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_setFocusEnabled'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0);
if(!ok)
return 0;
cobj->setFocusEnabled(arg0);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFocusEnabled",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_setFocusEnabled'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Widget_setActionTag(lua_State* tolua_S)
{
int argc = 0;
@ -2473,6 +2659,53 @@ int lua_cocos2dx_ui_Widget_clippingParentAreaContainPoint(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Widget_getCurrentFocusedWidget(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Widget* 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.Widget",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_getCurrentFocusedWidget'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0);
if(!ok)
return 0;
cocos2d::ui::Widget* ret = cobj->getCurrentFocusedWidget(arg0);
object_to_luaval<cocos2d::ui::Widget>(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getCurrentFocusedWidget",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_getCurrentFocusedWidget'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Widget_getTopInParent(lua_State* tolua_S)
{
int argc = 0;
@ -2517,6 +2750,49 @@ int lua_cocos2dx_ui_Widget_getTopInParent(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Widget_requestFocus(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Widget* 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.Widget",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_requestFocus'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
cobj->requestFocus();
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "requestFocus",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_requestFocus'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Widget_updateSizeAndPosition(lua_State* tolua_S)
{
int argc = 0;
@ -3113,6 +3389,50 @@ int lua_cocos2dx_ui_Widget_setBright(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Widget_isFocusEnabled(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Widget* 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.Widget",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Widget_isFocusEnabled'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
bool ret = cobj->isFocusEnabled();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isFocusEnabled",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Widget_isFocusEnabled'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Widget_create(lua_State* tolua_S)
{
int argc = 0;
@ -3198,10 +3518,12 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S)
tolua_function(tolua_S,"getTouchEndPos",lua_cocos2dx_ui_Widget_getTouchEndPos);
tolua_function(tolua_S,"setPositionPercent",lua_cocos2dx_ui_Widget_setPositionPercent);
tolua_function(tolua_S,"getLayoutSize",lua_cocos2dx_ui_Widget_getLayoutSize);
tolua_function(tolua_S,"setHighlighted",lua_cocos2dx_ui_Widget_setHighlighted);
tolua_function(tolua_S,"setPositionType",lua_cocos2dx_ui_Widget_setPositionType);
tolua_function(tolua_S,"getName",lua_cocos2dx_ui_Widget_getName);
tolua_function(tolua_S,"isIgnoreContentAdaptWithSize",lua_cocos2dx_ui_Widget_isIgnoreContentAdaptWithSize);
tolua_function(tolua_S,"getBottomInParent",lua_cocos2dx_ui_Widget_getBottomInParent);
tolua_function(tolua_S,"isHighlighted",lua_cocos2dx_ui_Widget_isHighlighted);
tolua_function(tolua_S,"getLayoutParameter",lua_cocos2dx_ui_Widget_getLayoutParameter);
tolua_function(tolua_S,"getPositionType",lua_cocos2dx_ui_Widget_getPositionType);
tolua_function(tolua_S,"getWidgetType",lua_cocos2dx_ui_Widget_getWidgetType);
@ -3209,6 +3531,7 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S)
tolua_function(tolua_S,"isEnabled",lua_cocos2dx_ui_Widget_isEnabled);
tolua_function(tolua_S,"isFocused",lua_cocos2dx_ui_Widget_isFocused);
tolua_function(tolua_S,"getVirtualRendererSize",lua_cocos2dx_ui_Widget_getVirtualRendererSize);
tolua_function(tolua_S,"findNextFocusedWidget",lua_cocos2dx_ui_Widget_findNextFocusedWidget);
tolua_function(tolua_S,"isTouchEnabled",lua_cocos2dx_ui_Widget_isTouchEnabled);
tolua_function(tolua_S,"getActionTag",lua_cocos2dx_ui_Widget_getActionTag);
tolua_function(tolua_S,"getWorldPosition",lua_cocos2dx_ui_Widget_getWorldPosition);
@ -3224,10 +3547,13 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S)
tolua_function(tolua_S,"setLayoutParameter",lua_cocos2dx_ui_Widget_setLayoutParameter);
tolua_function(tolua_S,"getSizePercent",lua_cocos2dx_ui_Widget_getSizePercent);
tolua_function(tolua_S,"getTouchStartPos",lua_cocos2dx_ui_Widget_getTouchStartPos);
tolua_function(tolua_S,"setFocusEnabled",lua_cocos2dx_ui_Widget_setFocusEnabled);
tolua_function(tolua_S,"setActionTag",lua_cocos2dx_ui_Widget_setActionTag);
tolua_function(tolua_S,"isBright",lua_cocos2dx_ui_Widget_isBright);
tolua_function(tolua_S,"clippingParentAreaContainPoint",lua_cocos2dx_ui_Widget_clippingParentAreaContainPoint);
tolua_function(tolua_S,"getCurrentFocusedWidget",lua_cocos2dx_ui_Widget_getCurrentFocusedWidget);
tolua_function(tolua_S,"getTopInParent",lua_cocos2dx_ui_Widget_getTopInParent);
tolua_function(tolua_S,"requestFocus",lua_cocos2dx_ui_Widget_requestFocus);
tolua_function(tolua_S,"updateSizeAndPosition",lua_cocos2dx_ui_Widget_updateSizeAndPosition);
tolua_function(tolua_S,"getSize",lua_cocos2dx_ui_Widget_getSize);
tolua_function(tolua_S,"getRightInParent",lua_cocos2dx_ui_Widget_getRightInParent);
@ -3241,6 +3567,7 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S)
tolua_function(tolua_S,"checkChildInfo",lua_cocos2dx_ui_Widget_checkChildInfo);
tolua_function(tolua_S,"setSize",lua_cocos2dx_ui_Widget_setSize);
tolua_function(tolua_S,"setBright",lua_cocos2dx_ui_Widget_setBright);
tolua_function(tolua_S,"isFocusEnabled",lua_cocos2dx_ui_Widget_isFocusEnabled);
tolua_function(tolua_S,"new",lua_cocos2dx_ui_Widget_constructor);
tolua_function(tolua_S,"create", lua_cocos2dx_ui_Widget_create);
tolua_endmodule(tolua_S);
@ -3388,6 +3715,52 @@ int lua_cocos2dx_ui_Layout_setBackGroundColorType(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Layout_setLoopFocus(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Layout* 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.Layout",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Layout_setLoopFocus'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0);
if(!ok)
return 0;
cobj->setLoopFocus(arg0);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setLoopFocus",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Layout_setLoopFocus'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Layout_setBackGroundImageColor(lua_State* tolua_S)
{
int argc = 0;
@ -3522,6 +3895,50 @@ int lua_cocos2dx_ui_Layout_getClippingType(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Layout_isLoopFocus(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Layout* 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.Layout",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Layout_isLoopFocus'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
bool ret = cobj->isLoopFocus();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isLoopFocus",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Layout_isLoopFocus'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Layout_removeBackGroundImage(lua_State* tolua_S)
{
int argc = 0;
@ -4258,6 +4675,50 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageOpacity(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Layout_isPassFocusToChild(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Layout* 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.Layout",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Layout_isPassFocusToChild'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
bool ret = cobj->isPassFocusToChild();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isPassFocusToChild",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Layout_isPassFocusToChild'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Layout_setBackGroundImageCapInsets(lua_State* tolua_S)
{
int argc = 0;
@ -4392,6 +4853,52 @@ int lua_cocos2dx_ui_Layout_getLayoutType(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_ui_Layout_setPassFocusToChild(lua_State* tolua_S)
{
int argc = 0;
cocos2d::ui::Layout* 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.Layout",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_Layout_setPassFocusToChild'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0);
if(!ok)
return 0;
cobj->setPassFocusToChild(arg0);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setPassFocusToChild",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Layout_setPassFocusToChild'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_ui_Layout_getBackGroundStartColor(lua_State* tolua_S)
{
int argc = 0;
@ -4639,9 +5146,11 @@ int lua_register_cocos2dx_ui_Layout(lua_State* tolua_S)
tolua_function(tolua_S,"setBackGroundColorVector",lua_cocos2dx_ui_Layout_setBackGroundColorVector);
tolua_function(tolua_S,"setClippingType",lua_cocos2dx_ui_Layout_setClippingType);
tolua_function(tolua_S,"setBackGroundColorType",lua_cocos2dx_ui_Layout_setBackGroundColorType);
tolua_function(tolua_S,"setLoopFocus",lua_cocos2dx_ui_Layout_setLoopFocus);
tolua_function(tolua_S,"setBackGroundImageColor",lua_cocos2dx_ui_Layout_setBackGroundImageColor);
tolua_function(tolua_S,"getBackGroundColorVector",lua_cocos2dx_ui_Layout_getBackGroundColorVector);
tolua_function(tolua_S,"getClippingType",lua_cocos2dx_ui_Layout_getClippingType);
tolua_function(tolua_S,"isLoopFocus",lua_cocos2dx_ui_Layout_isLoopFocus);
tolua_function(tolua_S,"removeBackGroundImage",lua_cocos2dx_ui_Layout_removeBackGroundImage);
tolua_function(tolua_S,"getBackGroundColorOpacity",lua_cocos2dx_ui_Layout_getBackGroundColorOpacity);
tolua_function(tolua_S,"isClippingEnabled",lua_cocos2dx_ui_Layout_isClippingEnabled);
@ -4658,9 +5167,11 @@ int lua_register_cocos2dx_ui_Layout(lua_State* tolua_S)
tolua_function(tolua_S,"getBackGroundEndColor",lua_cocos2dx_ui_Layout_getBackGroundEndColor);
tolua_function(tolua_S,"setBackGroundColorOpacity",lua_cocos2dx_ui_Layout_setBackGroundColorOpacity);
tolua_function(tolua_S,"getBackGroundImageOpacity",lua_cocos2dx_ui_Layout_getBackGroundImageOpacity);
tolua_function(tolua_S,"isPassFocusToChild",lua_cocos2dx_ui_Layout_isPassFocusToChild);
tolua_function(tolua_S,"setBackGroundImageCapInsets",lua_cocos2dx_ui_Layout_setBackGroundImageCapInsets);
tolua_function(tolua_S,"getBackGroundImageTextureSize",lua_cocos2dx_ui_Layout_getBackGroundImageTextureSize);
tolua_function(tolua_S,"getLayoutType",lua_cocos2dx_ui_Layout_getLayoutType);
tolua_function(tolua_S,"setPassFocusToChild",lua_cocos2dx_ui_Layout_setPassFocusToChild);
tolua_function(tolua_S,"getBackGroundStartColor",lua_cocos2dx_ui_Layout_getBackGroundStartColor);
tolua_function(tolua_S,"setBackGroundImageScale9Enabled",lua_cocos2dx_ui_Layout_setBackGroundImageScale9Enabled);
tolua_function(tolua_S,"setLayoutType",lua_cocos2dx_ui_Layout_setLayoutType);

View File

@ -355,6 +355,17 @@ int register_all_cocos2dx_ui(lua_State* tolua_S);