From 43d4241432f4774edcd42b53c950fd10605d6732 Mon Sep 17 00:00:00 2001 From: CocosRobot Date: Thu, 21 Apr 2016 03:37:00 +0000 Subject: [PATCH] [ci skip][AUTO]: updating luabinding & jsbinding automatically --- .../auto/api/jsb_cocos2dx_ui_auto_api.js | 520 +++- .../js-bindings/auto/jsb_cocos2dx_ui_auto.cpp | 1566 +++++++++- .../js-bindings/auto/jsb_cocos2dx_ui_auto.hpp | 57 +- .../lua-bindings/auto/api/Console.lua | 49 +- .../lua-bindings/auto/api/RichElement.lua | 14 + .../auto/api/RichElementImage.lua | 11 + .../lua-bindings/auto/api/RichElementText.lua | 30 +- .../lua-bindings/auto/api/RichText.lua | 266 +- .../lua-bindings/auto/lua_cocos2dx_auto.cpp | 315 +- .../lua-bindings/auto/lua_cocos2dx_auto.hpp | 5 + .../auto/lua_cocos2dx_ui_auto.cpp | 2773 ++++++++++++++++- .../auto/lua_cocos2dx_ui_auto.hpp | 39 + 12 files changed, 5460 insertions(+), 185 deletions(-) diff --git a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_ui_auto_api.js b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_ui_auto_api.js index f920724d11..30437f3c5f 100644 --- a/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_ui_auto_api.js +++ b/cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_ui_auto_api.js @@ -5354,6 +5354,18 @@ node */ ccui.RichElement = { +/** + * @method equalType + * @param {ccui.RichElement::Type} arg0 + * @return {bool} + */ +equalType : function ( +type +) +{ + return false; +}, + /** * @method init * @param {int} arg0 @@ -5370,6 +5382,16 @@ char return false; }, +/** + * @method setColor + * @param {color3b_object} arg0 + */ +setColor : function ( +color3b +) +{ +}, + /** * @method RichElement * @constructor @@ -5396,6 +5418,12 @@ ccui.RichElementText = { * @param {float} arg5 * @param {unsigned int} arg6 * @param {String} arg7 + * @param {color3b_object} arg8 + * @param {int} arg9 + * @param {color3b_object} arg10 + * @param {size_object} arg11 + * @param {int} arg12 + * @param {color3b_object} arg13 * @return {bool} */ init : function ( @@ -5406,7 +5434,13 @@ str, str, float, int, -str +str, +color3b, +int, +color3b, +size, +int, +color3b ) { return false; @@ -5422,6 +5456,12 @@ str * @param {float} arg5 * @param {unsigned int} arg6 * @param {String} arg7 + * @param {color3b_object} arg8 + * @param {int} arg9 + * @param {color3b_object} arg10 + * @param {size_object} arg11 + * @param {int} arg12 + * @param {color3b_object} arg13 * @return {ccui.RichElementText} */ create : function ( @@ -5432,7 +5472,13 @@ str, str, float, int, -str +str, +color3b, +int, +color3b, +size, +int, +color3b ) { return ccui.RichElementText; @@ -5470,12 +5516,14 @@ int * @param {color3b_object} arg1 * @param {unsigned char} arg2 * @param {String} arg3 + * @param {String} arg4 * @return {bool} */ init : function ( int, color3b, char, +str, str ) { @@ -5492,18 +5540,30 @@ int { }, +/** + * @method setUrl + * @param {String} arg0 + */ +setUrl : function ( +str +) +{ +}, + /** * @method create * @param {int} arg0 * @param {color3b_object} arg1 * @param {unsigned char} arg2 * @param {String} arg3 + * @param {String} arg4 * @return {ccui.RichElementImage} */ create : function ( int, color3b, char, +str, str ) { @@ -5573,6 +5633,38 @@ RichElementCustomNode : function ( }; +/** + * @class RichElementNewLine + */ +ccui.RichElementNewLine = { + +/** + * @method create + * @param {int} arg0 + * @param {color3b_object} arg1 + * @param {unsigned char} arg2 + * @return {ccui.RichElementNewLine} + */ +create : function ( +int, +color3b, +char +) +{ + return ccui.RichElementNewLine; +}, + +/** + * @method RichElementNewLine + * @constructor + */ +RichElementNewLine : function ( +) +{ +}, + +}; + /** * @class RichText */ @@ -5590,6 +5682,30 @@ int { }, +/** + * @method setAnchorTextOutline + * @param {bool} arg0 + * @param {color3b_object} arg1 + * @param {int} arg2 + */ +setAnchorTextOutline : function ( +bool, +color3b, +int +) +{ +}, + +/** + * @method getFontSize + * @return {float} + */ +getFontSize : function ( +) +{ + return 0; +}, + /** * @method pushBackElement * @param {ccui.RichElement} arg0 @@ -5600,6 +5716,290 @@ richelement { }, +/** + * @method setAnchorTextBold + * @param {bool} arg0 + */ +setAnchorTextBold : function ( +bool +) +{ +}, + +/** + * @method getAnchorFontColor + * @return {String} + */ +getAnchorFontColor : function ( +) +{ + return ; +}, + +/** + * @method getAnchorTextShadowBlurRadius + * @return {int} + */ +getAnchorTextShadowBlurRadius : function ( +) +{ + return 0; +}, + +/** + * @method setAnchorTextShadow + * @param {bool} arg0 + * @param {color3b_object} arg1 + * @param {size_object} arg2 + * @param {int} arg3 + */ +setAnchorTextShadow : function ( +bool, +color3b, +size, +int +) +{ +}, + +/** + * @method isAnchorTextItalicEnabled + * @return {bool} + */ +isAnchorTextItalicEnabled : function ( +) +{ + return false; +}, + +/** + * @method setAnchorFontColor + * @param {String} arg0 + */ +setAnchorFontColor : function ( +str +) +{ +}, + +/** + * @method setFontFace + * @param {String} arg0 + */ +setFontFace : function ( +str +) +{ +}, + +/** + * @method setAnchorTextGlow + * @param {bool} arg0 + * @param {color3b_object} arg1 + */ +setAnchorTextGlow : function ( +bool, +color3b +) +{ +}, + +/** + * @method setAnchorTextDel + * @param {bool} arg0 + */ +setAnchorTextDel : function ( +bool +) +{ +}, + +/** + * @method getAnchorTextOutlineColor3B + * @return {color3b_object} + */ +getAnchorTextOutlineColor3B : function ( +) +{ + return cc.Color3B; +}, + +/** + * @method stringWithColor4B + * @param {color4b_object} arg0 + * @return {String} + */ +stringWithColor4B : function ( +color4b +) +{ + return ; +}, + +/** + * @method initWithXML + * @param {String} arg0 + * @param {map_object} arg1 + * @param {function} arg2 + * @return {bool} + */ +initWithXML : function ( +str, +map, +func +) +{ + return false; +}, + +/** + * @method getAnchorFontColor3B + * @return {color3b_object} + */ +getAnchorFontColor3B : function ( +) +{ + return cc.Color3B; +}, + +/** + * @method formatText + */ +formatText : function ( +) +{ +}, + +/** + * @method getAnchorTextGlowColor3B + * @return {color3b_object} + */ +getAnchorTextGlowColor3B : function ( +) +{ + return cc.Color3B; +}, + +/** + * @method openUrl + * @param {String} arg0 + */ +openUrl : function ( +str +) +{ +}, + +/** + * @method getFontFace + * @return {String} + */ +getFontFace : function ( +) +{ + return ; +}, + +/** + * @method setFontColor + * @param {String} arg0 + */ +setFontColor : function ( +str +) +{ +}, + +/** + * @method isAnchorTextGlowEnabled + * @return {bool} + */ +isAnchorTextGlowEnabled : function ( +) +{ + return false; +}, + +/** + * @method getDefaults + * @return {map_object} + */ +getDefaults : function ( +) +{ + return map_object; +}, + +/** + * @method isAnchorTextUnderlineEnabled + * @return {bool} + */ +isAnchorTextUnderlineEnabled : function ( +) +{ + return false; +}, + +/** + * @method getFontColor + * @return {String} + */ +getFontColor : function ( +) +{ + return ; +}, + +/** + * @method isAnchorTextShadowEnabled + * @return {bool} + */ +isAnchorTextShadowEnabled : function ( +) +{ + return false; +}, + +/** + * @method getAnchorTextOutlineSize + * @return {int} + */ +getAnchorTextOutlineSize : function ( +) +{ + return 0; +}, + +/** + * @method setVerticalSpace + * @param {float} arg0 + */ +setVerticalSpace : function ( +float +) +{ +}, + +/** + * @method isAnchorTextDelEnabled + * @return {bool} + */ +isAnchorTextDelEnabled : function ( +) +{ + return false; +}, + +/** + * @method setDefaults + * @param {map_object} arg0 + */ +setDefaults : function ( +map +) +{ +}, + /** * @method setWrapMode * @param {ccui.RichText::WrapMode} arg0 @@ -5611,15 +6011,97 @@ wrapmode }, /** - * @method setVerticalSpace + * @method setFontSize * @param {float} arg0 */ -setVerticalSpace : function ( +setFontSize : function ( float ) { }, +/** + * @method removeElement +* @param {ccui.RichElement|int} richelement +*/ +removeElement : function( +int +) +{ +}, + +/** + * @method setAnchorTextItalic + * @param {bool} arg0 + */ +setAnchorTextItalic : function ( +bool +) +{ +}, + +/** + * @method getAnchorTextShadowOffset + * @return {size_object} + */ +getAnchorTextShadowOffset : function ( +) +{ + return cc.Size; +}, + +/** + * @method isAnchorTextBoldEnabled + * @return {bool} + */ +isAnchorTextBoldEnabled : function ( +) +{ + return false; +}, + +/** + * @method getAnchorTextShadowColor3B + * @return {color3b_object} + */ +getAnchorTextShadowColor3B : function ( +) +{ + return cc.Color3B; +}, + +/** + * @method stringWithColor3B + * @param {color3b_object} arg0 + * @return {String} + */ +stringWithColor3B : function ( +color3b +) +{ + return ; +}, + +/** + * @method isAnchorTextOutlineEnabled + * @return {bool} + */ +isAnchorTextOutlineEnabled : function ( +) +{ + return false; +}, + +/** + * @method getFontColor3B + * @return {color3b_object} + */ +getFontColor3B : function ( +) +{ + return cc.Color3B; +}, + /** * @method getWrapMode * @return {ccui.RichText::WrapMode} @@ -5631,33 +6113,25 @@ getWrapMode : function ( }, /** - * @method formatText + * @method setAnchorTextUnderline + * @param {bool} arg0 */ -formatText : function ( +setAnchorTextUnderline : function ( +bool ) { }, /** - * @method initWithXML + * @method color3BWithString * @param {String} arg0 - * @return {bool} + * @return {color3b_object} */ -initWithXML : function ( +color3BWithString : function ( str ) { - return false; -}, - -/** - * @method removeElement -* @param {ccui.RichElement|int} richelement -*/ -removeElement : function( -int -) -{ + return cc.Color3B; }, /** @@ -5673,10 +6147,14 @@ create : function ( /** * @method createWithXML * @param {String} arg0 + * @param {map_object} arg1 + * @param {function} arg2 * @return {ccui.RichText} */ createWithXML : function ( -str +str, +map, +func ) { return ccui.RichText; diff --git a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.cpp b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.cpp index f843e69267..6d68ef5ae0 100644 --- a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.cpp +++ b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.cpp @@ -13014,6 +13014,28 @@ void js_register_cocos2dx_ui_Helper(JSContext *cx, JS::HandleObject global) { JSClass *jsb_cocos2d_ui_RichElement_class; JSObject *jsb_cocos2d_ui_RichElement_prototype; +bool js_cocos2dx_ui_RichElement_equalType(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichElement* cobj = (cocos2d::ui::RichElement *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichElement_equalType : Invalid Native Object"); + if (argc == 1) { + cocos2d::ui::RichElement::Type arg0; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElement_equalType : Error processing arguments"); + bool ret = cobj->equalType(arg0); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichElement_equalType : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} bool js_cocos2dx_ui_RichElement_init(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); @@ -13040,6 +13062,26 @@ bool js_cocos2dx_ui_RichElement_init(JSContext *cx, uint32_t argc, jsval *vp) JS_ReportError(cx, "js_cocos2dx_ui_RichElement_init : wrong number of arguments: %d, was expecting %d", argc, 3); return false; } +bool js_cocos2dx_ui_RichElement_setColor(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichElement* cobj = (cocos2d::ui::RichElement *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichElement_setColor : Invalid Native Object"); + if (argc == 1) { + cocos2d::Color3B arg0; + ok &= jsval_to_cccolor3b(cx, args.get(0), &arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElement_setColor : Error processing arguments"); + cobj->setColor(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichElement_setColor : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} bool js_cocos2dx_ui_RichElement_constructor(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); @@ -13088,7 +13130,9 @@ void js_register_cocos2dx_ui_RichElement(JSContext *cx, JS::HandleObject global) }; static JSFunctionSpec funcs[] = { + JS_FN("equalType", js_cocos2dx_ui_RichElement_equalType, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("init", js_cocos2dx_ui_RichElement_init, 3, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setColor", js_cocos2dx_ui_RichElement_setColor, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("ctor", js_cocos2dx_ui_RichElement_ctor, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FS_END }; @@ -13150,6 +13194,192 @@ bool js_cocos2dx_ui_RichElementText_init(JSContext *cx, uint32_t argc, jsval *vp args.rval().set(jsret); return true; } + if (argc == 9) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_init : Error processing arguments"); + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + if (argc == 10) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + int arg9 = 0; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + ok &= jsval_to_int32(cx, args.get(9), (int32_t *)&arg9); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_init : Error processing arguments"); + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + if (argc == 11) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + int arg9 = 0; + cocos2d::Color3B arg10; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + ok &= jsval_to_int32(cx, args.get(9), (int32_t *)&arg9); + ok &= jsval_to_cccolor3b(cx, args.get(10), &arg10); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_init : Error processing arguments"); + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + if (argc == 12) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + int arg9 = 0; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + ok &= jsval_to_int32(cx, args.get(9), (int32_t *)&arg9); + ok &= jsval_to_cccolor3b(cx, args.get(10), &arg10); + ok &= jsval_to_ccsize(cx, args.get(11), &arg11); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_init : Error processing arguments"); + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + if (argc == 13) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + int arg9 = 0; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + int arg12 = 0; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + ok &= jsval_to_int32(cx, args.get(9), (int32_t *)&arg9); + ok &= jsval_to_cccolor3b(cx, args.get(10), &arg10); + ok &= jsval_to_ccsize(cx, args.get(11), &arg11); + ok &= jsval_to_int32(cx, args.get(12), (int32_t *)&arg12); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_init : Error processing arguments"); + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + if (argc == 14) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + int arg9 = 0; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + int arg12 = 0; + cocos2d::Color3B arg13; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + ok &= jsval_to_int32(cx, args.get(9), (int32_t *)&arg9); + ok &= jsval_to_cccolor3b(cx, args.get(10), &arg10); + ok &= jsval_to_ccsize(cx, args.get(11), &arg11); + ok &= jsval_to_int32(cx, args.get(12), (int32_t *)&arg12); + ok &= jsval_to_cccolor3b(cx, args.get(13), &arg13); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_init : Error processing arguments"); + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } JS_ReportError(cx, "js_cocos2dx_ui_RichElementText_init : wrong number of arguments: %d, was expecting %d", argc, 8); return false; @@ -13227,6 +13457,198 @@ bool js_cocos2dx_ui_RichElementText_create(JSContext *cx, uint32_t argc, jsval * args.rval().set(OBJECT_TO_JSVAL(jsret)); return true; } + if (argc == 9) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_create : Error processing arguments"); + + auto ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + js_type_class_t *typeClass = js_get_type_from_native(ret); + JS::RootedObject jsret(cx, jsb_ref_autoreleased_create_jsobject(cx, ret, typeClass, "cocos2d::ui::RichElementText")); + args.rval().set(OBJECT_TO_JSVAL(jsret)); + return true; + } + if (argc == 10) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + int arg9 = 0; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + ok &= jsval_to_int32(cx, args.get(9), (int32_t *)&arg9); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_create : Error processing arguments"); + + auto ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); + js_type_class_t *typeClass = js_get_type_from_native(ret); + JS::RootedObject jsret(cx, jsb_ref_autoreleased_create_jsobject(cx, ret, typeClass, "cocos2d::ui::RichElementText")); + args.rval().set(OBJECT_TO_JSVAL(jsret)); + return true; + } + if (argc == 11) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + int arg9 = 0; + cocos2d::Color3B arg10; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + ok &= jsval_to_int32(cx, args.get(9), (int32_t *)&arg9); + ok &= jsval_to_cccolor3b(cx, args.get(10), &arg10); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_create : Error processing arguments"); + + auto ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); + js_type_class_t *typeClass = js_get_type_from_native(ret); + JS::RootedObject jsret(cx, jsb_ref_autoreleased_create_jsobject(cx, ret, typeClass, "cocos2d::ui::RichElementText")); + args.rval().set(OBJECT_TO_JSVAL(jsret)); + return true; + } + if (argc == 12) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + int arg9 = 0; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + ok &= jsval_to_int32(cx, args.get(9), (int32_t *)&arg9); + ok &= jsval_to_cccolor3b(cx, args.get(10), &arg10); + ok &= jsval_to_ccsize(cx, args.get(11), &arg11); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_create : Error processing arguments"); + + auto ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); + js_type_class_t *typeClass = js_get_type_from_native(ret); + JS::RootedObject jsret(cx, jsb_ref_autoreleased_create_jsobject(cx, ret, typeClass, "cocos2d::ui::RichElementText")); + args.rval().set(OBJECT_TO_JSVAL(jsret)); + return true; + } + if (argc == 13) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + int arg9 = 0; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + int arg12 = 0; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + ok &= jsval_to_int32(cx, args.get(9), (int32_t *)&arg9); + ok &= jsval_to_cccolor3b(cx, args.get(10), &arg10); + ok &= jsval_to_ccsize(cx, args.get(11), &arg11); + ok &= jsval_to_int32(cx, args.get(12), (int32_t *)&arg12); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_create : Error processing arguments"); + + auto ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); + js_type_class_t *typeClass = js_get_type_from_native(ret); + JS::RootedObject jsret(cx, jsb_ref_autoreleased_create_jsobject(cx, ret, typeClass, "cocos2d::ui::RichElementText")); + args.rval().set(OBJECT_TO_JSVAL(jsret)); + return true; + } + if (argc == 14) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5 = 0; + unsigned int arg6 = 0; + std::string arg7; + cocos2d::Color3B arg8; + int arg9 = 0; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + int arg12 = 0; + cocos2d::Color3B arg13; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + ok &= JS::ToNumber( cx, args.get(5), &arg5) && !isnan(arg5); + ok &= jsval_to_uint32(cx, args.get(6), &arg6); + ok &= jsval_to_std_string(cx, args.get(7), &arg7); + ok &= jsval_to_cccolor3b(cx, args.get(8), &arg8); + ok &= jsval_to_int32(cx, args.get(9), (int32_t *)&arg9); + ok &= jsval_to_cccolor3b(cx, args.get(10), &arg10); + ok &= jsval_to_ccsize(cx, args.get(11), &arg11); + ok &= jsval_to_int32(cx, args.get(12), (int32_t *)&arg12); + ok &= jsval_to_cccolor3b(cx, args.get(13), &arg13); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementText_create : Error processing arguments"); + + auto ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); + js_type_class_t *typeClass = js_get_type_from_native(ret); + JS::RootedObject jsret(cx, jsb_ref_autoreleased_create_jsobject(cx, ret, typeClass, "cocos2d::ui::RichElementText")); + args.rval().set(OBJECT_TO_JSVAL(jsret)); + return true; + } JS_ReportError(cx, "js_cocos2dx_ui_RichElementText_create : wrong number of arguments"); return false; } @@ -13359,6 +13781,24 @@ bool js_cocos2dx_ui_RichElementImage_init(JSContext *cx, uint32_t argc, jsval *v args.rval().set(jsret); return true; } + if (argc == 5) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementImage_init : Error processing arguments"); + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } JS_ReportError(cx, "js_cocos2dx_ui_RichElementImage_init : wrong number of arguments: %d, was expecting %d", argc, 4); return false; @@ -13383,6 +13823,26 @@ bool js_cocos2dx_ui_RichElementImage_setWidth(JSContext *cx, uint32_t argc, jsva JS_ReportError(cx, "js_cocos2dx_ui_RichElementImage_setWidth : wrong number of arguments: %d, was expecting %d", argc, 1); return false; } +bool js_cocos2dx_ui_RichElementImage_setUrl(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichElementImage* cobj = (cocos2d::ui::RichElementImage *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichElementImage_setUrl : Invalid Native Object"); + if (argc == 1) { + std::string arg0; + ok &= jsval_to_std_string(cx, args.get(0), &arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementImage_setUrl : Error processing arguments"); + cobj->setUrl(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichElementImage_setUrl : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} bool js_cocos2dx_ui_RichElementImage_create(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); @@ -13404,6 +13864,25 @@ bool js_cocos2dx_ui_RichElementImage_create(JSContext *cx, uint32_t argc, jsval args.rval().set(OBJECT_TO_JSVAL(jsret)); return true; } + if (argc == 5) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + ok &= jsval_to_std_string(cx, args.get(3), &arg3); + ok &= jsval_to_std_string(cx, args.get(4), &arg4); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementImage_create : Error processing arguments"); + + auto ret = cocos2d::ui::RichElementImage::create(arg0, arg1, arg2, arg3, arg4); + js_type_class_t *typeClass = js_get_type_from_native(ret); + JS::RootedObject jsret(cx, jsb_ref_autoreleased_create_jsobject(cx, ret, typeClass, "cocos2d::ui::RichElementImage")); + args.rval().set(OBJECT_TO_JSVAL(jsret)); + return true; + } JS_ReportError(cx, "js_cocos2dx_ui_RichElementImage_create : wrong number of arguments"); return false; } @@ -13461,6 +13940,7 @@ void js_register_cocos2dx_ui_RichElementImage(JSContext *cx, JS::HandleObject gl JS_FN("setHeight", js_cocos2dx_ui_RichElementImage_setHeight, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("init", js_cocos2dx_ui_RichElementImage_init, 4, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("setWidth", js_cocos2dx_ui_RichElementImage_setWidth, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setUrl", js_cocos2dx_ui_RichElementImage_setUrl, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("ctor", js_cocos2dx_ui_RichElementImage_ctor, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FS_END }; @@ -13644,6 +14124,112 @@ void js_register_cocos2dx_ui_RichElementCustomNode(JSContext *cx, JS::HandleObje anonEvaluate(cx, global, "(function () { ccui.RichElementCustomNode.extend = cc.Class.extend; })()"); } +JSClass *jsb_cocos2d_ui_RichElementNewLine_class; +JSObject *jsb_cocos2d_ui_RichElementNewLine_prototype; + +bool js_cocos2dx_ui_RichElementNewLine_create(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + if (argc == 3) { + int arg0 = 0; + cocos2d::Color3B arg1; + uint16_t arg2; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_uint16(cx, args.get(2), &arg2); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichElementNewLine_create : Error processing arguments"); + + auto ret = cocos2d::ui::RichElementNewLine::create(arg0, arg1, arg2); + js_type_class_t *typeClass = js_get_type_from_native(ret); + JS::RootedObject jsret(cx, jsb_ref_autoreleased_create_jsobject(cx, ret, typeClass, "cocos2d::ui::RichElementNewLine")); + args.rval().set(OBJECT_TO_JSVAL(jsret)); + return true; + } + JS_ReportError(cx, "js_cocos2dx_ui_RichElementNewLine_create : wrong number of arguments"); + return false; +} + +bool js_cocos2dx_ui_RichElementNewLine_constructor(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + cocos2d::ui::RichElementNewLine* cobj = new (std::nothrow) cocos2d::ui::RichElementNewLine(); + + js_type_class_t *typeClass = js_get_type_from_native(cobj); + + // link the native object with the javascript object + JS::RootedObject jsobj(cx, jsb_ref_create_jsobject(cx, cobj, typeClass, "cocos2d::ui::RichElementNewLine")); + args.rval().set(OBJECT_TO_JSVAL(jsobj)); + if (JS_HasProperty(cx, jsobj, "_ctor", &ok) && ok) + ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(jsobj), "_ctor", args); + return true; +} +static bool js_cocos2dx_ui_RichElementNewLine_ctor(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + cocos2d::ui::RichElementNewLine *nobj = new (std::nothrow) cocos2d::ui::RichElementNewLine(); + auto newproxy = jsb_new_proxy(nobj, obj); + jsb_ref_init(cx, &newproxy->obj, nobj, "cocos2d::ui::RichElementNewLine"); + bool isFound = false; + if (JS_HasProperty(cx, obj, "_ctor", &isFound) && isFound) + ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), "_ctor", args); + args.rval().setUndefined(); + return true; +} + + +extern JSObject *jsb_cocos2d_ui_RichElement_prototype; + + +void js_register_cocos2dx_ui_RichElementNewLine(JSContext *cx, JS::HandleObject global) { + jsb_cocos2d_ui_RichElementNewLine_class = (JSClass *)calloc(1, sizeof(JSClass)); + jsb_cocos2d_ui_RichElementNewLine_class->name = "RichElementNewLine"; + jsb_cocos2d_ui_RichElementNewLine_class->addProperty = JS_PropertyStub; + jsb_cocos2d_ui_RichElementNewLine_class->delProperty = JS_DeletePropertyStub; + jsb_cocos2d_ui_RichElementNewLine_class->getProperty = JS_PropertyStub; + jsb_cocos2d_ui_RichElementNewLine_class->setProperty = JS_StrictPropertyStub; + jsb_cocos2d_ui_RichElementNewLine_class->enumerate = JS_EnumerateStub; + jsb_cocos2d_ui_RichElementNewLine_class->resolve = JS_ResolveStub; + jsb_cocos2d_ui_RichElementNewLine_class->convert = JS_ConvertStub; + jsb_cocos2d_ui_RichElementNewLine_class->flags = JSCLASS_HAS_RESERVED_SLOTS(2); + + static JSPropertySpec properties[] = { + JS_PS_END + }; + + static JSFunctionSpec funcs[] = { + JS_FN("ctor", js_cocos2dx_ui_RichElementNewLine_ctor, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FS_END + }; + + static JSFunctionSpec st_funcs[] = { + JS_FN("create", js_cocos2dx_ui_RichElementNewLine_create, 3, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FS_END + }; + + JS::RootedObject parent_proto(cx, jsb_cocos2d_ui_RichElement_prototype); + jsb_cocos2d_ui_RichElementNewLine_prototype = JS_InitClass( + cx, global, + parent_proto, + jsb_cocos2d_ui_RichElementNewLine_class, + js_cocos2dx_ui_RichElementNewLine_constructor, 0, // constructor + properties, + funcs, + NULL, // no static properties + st_funcs); + + JS::RootedObject proto(cx, jsb_cocos2d_ui_RichElementNewLine_prototype); + JS::RootedValue className(cx, std_string_to_jsval(cx, "RichElementNewLine")); + JS_SetProperty(cx, proto, "_className", className); + JS_SetProperty(cx, proto, "__nativeObj", JS::TrueHandleValue); + JS_SetProperty(cx, proto, "__is_ref", JS::TrueHandleValue); + // add the proto and JSClass to the type->js info hash table + jsb_register_class(cx, jsb_cocos2d_ui_RichElementNewLine_class, proto, parent_proto); + anonEvaluate(cx, global, "(function () { ccui.RichElementNewLine.extend = cc.Class.extend; })()"); +} + JSClass *jsb_cocos2d_ui_RichText_class; JSObject *jsb_cocos2d_ui_RichText_prototype; @@ -13677,6 +14263,66 @@ bool js_cocos2dx_ui_RichText_insertElement(JSContext *cx, uint32_t argc, jsval * JS_ReportError(cx, "js_cocos2dx_ui_RichText_insertElement : wrong number of arguments: %d, was expecting %d", argc, 2); return false; } +bool js_cocos2dx_ui_RichText_setAnchorTextOutline(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextOutline : Invalid Native Object"); + if (argc == 1) { + bool arg0; + arg0 = JS::ToBoolean(args.get(0)); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextOutline : Error processing arguments"); + cobj->setAnchorTextOutline(arg0); + args.rval().setUndefined(); + return true; + } + if (argc == 2) { + bool arg0; + cocos2d::Color3B arg1; + arg0 = JS::ToBoolean(args.get(0)); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextOutline : Error processing arguments"); + cobj->setAnchorTextOutline(arg0, arg1); + args.rval().setUndefined(); + return true; + } + if (argc == 3) { + bool arg0; + cocos2d::Color3B arg1; + int arg2 = 0; + arg0 = JS::ToBoolean(args.get(0)); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_int32(cx, args.get(2), (int32_t *)&arg2); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextOutline : Error processing arguments"); + cobj->setAnchorTextOutline(arg0, arg1, arg2); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setAnchorTextOutline : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_getFontSize(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getFontSize : Invalid Native Object"); + if (argc == 0) { + double ret = cobj->getFontSize(); + jsval jsret = JSVAL_NULL; + jsret = DOUBLE_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getFontSize : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} bool js_cocos2dx_ui_RichText_pushBackElement(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); @@ -13705,24 +14351,542 @@ bool js_cocos2dx_ui_RichText_pushBackElement(JSContext *cx, uint32_t argc, jsval JS_ReportError(cx, "js_cocos2dx_ui_RichText_pushBackElement : wrong number of arguments: %d, was expecting %d", argc, 1); return false; } -bool js_cocos2dx_ui_RichText_setWrapMode(JSContext *cx, uint32_t argc, jsval *vp) +bool js_cocos2dx_ui_RichText_setAnchorTextBold(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); bool ok = true; JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); js_proxy_t *proxy = jsb_get_js_proxy(obj); cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); - JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setWrapMode : Invalid Native Object"); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextBold : Invalid Native Object"); if (argc == 1) { - cocos2d::ui::RichText::WrapMode arg0; - ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); - JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setWrapMode : Error processing arguments"); - cobj->setWrapMode(arg0); + bool arg0; + arg0 = JS::ToBoolean(args.get(0)); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextBold : Error processing arguments"); + cobj->setAnchorTextBold(arg0); args.rval().setUndefined(); return true; } - JS_ReportError(cx, "js_cocos2dx_ui_RichText_setWrapMode : wrong number of arguments: %d, was expecting %d", argc, 1); + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setAnchorTextBold : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_getAnchorFontColor(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getAnchorFontColor : Invalid Native Object"); + if (argc == 0) { + std::string ret = cobj->getAnchorFontColor(); + jsval jsret = JSVAL_NULL; + jsret = std_string_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getAnchorFontColor : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius : Invalid Native Object"); + if (argc == 0) { + int ret = cobj->getAnchorTextShadowBlurRadius(); + jsval jsret = JSVAL_NULL; + jsret = int32_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_setAnchorTextShadow(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextShadow : Invalid Native Object"); + if (argc == 1) { + bool arg0; + arg0 = JS::ToBoolean(args.get(0)); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextShadow : Error processing arguments"); + cobj->setAnchorTextShadow(arg0); + args.rval().setUndefined(); + return true; + } + if (argc == 2) { + bool arg0; + cocos2d::Color3B arg1; + arg0 = JS::ToBoolean(args.get(0)); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextShadow : Error processing arguments"); + cobj->setAnchorTextShadow(arg0, arg1); + args.rval().setUndefined(); + return true; + } + if (argc == 3) { + bool arg0; + cocos2d::Color3B arg1; + cocos2d::Size arg2; + arg0 = JS::ToBoolean(args.get(0)); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_ccsize(cx, args.get(2), &arg2); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextShadow : Error processing arguments"); + cobj->setAnchorTextShadow(arg0, arg1, arg2); + args.rval().setUndefined(); + return true; + } + if (argc == 4) { + bool arg0; + cocos2d::Color3B arg1; + cocos2d::Size arg2; + int arg3 = 0; + arg0 = JS::ToBoolean(args.get(0)); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + ok &= jsval_to_ccsize(cx, args.get(2), &arg2); + ok &= jsval_to_int32(cx, args.get(3), (int32_t *)&arg3); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextShadow : Error processing arguments"); + cobj->setAnchorTextShadow(arg0, arg1, arg2, arg3); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setAnchorTextShadow : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_isAnchorTextItalicEnabled(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_isAnchorTextItalicEnabled : Invalid Native Object"); + if (argc == 0) { + bool ret = cobj->isAnchorTextItalicEnabled(); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_isAnchorTextItalicEnabled : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_setAnchorFontColor(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setAnchorFontColor : Invalid Native Object"); + if (argc == 1) { + std::string arg0; + ok &= jsval_to_std_string(cx, args.get(0), &arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorFontColor : Error processing arguments"); + cobj->setAnchorFontColor(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setAnchorFontColor : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_setFontFace(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setFontFace : Invalid Native Object"); + if (argc == 1) { + std::string arg0; + ok &= jsval_to_std_string(cx, args.get(0), &arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setFontFace : Error processing arguments"); + cobj->setFontFace(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setFontFace : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_setAnchorTextGlow(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextGlow : Invalid Native Object"); + if (argc == 1) { + bool arg0; + arg0 = JS::ToBoolean(args.get(0)); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextGlow : Error processing arguments"); + cobj->setAnchorTextGlow(arg0); + args.rval().setUndefined(); + return true; + } + if (argc == 2) { + bool arg0; + cocos2d::Color3B arg1; + arg0 = JS::ToBoolean(args.get(0)); + ok &= jsval_to_cccolor3b(cx, args.get(1), &arg1); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextGlow : Error processing arguments"); + cobj->setAnchorTextGlow(arg0, arg1); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setAnchorTextGlow : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_setAnchorTextDel(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextDel : Invalid Native Object"); + if (argc == 1) { + bool arg0; + arg0 = JS::ToBoolean(args.get(0)); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextDel : Error processing arguments"); + cobj->setAnchorTextDel(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setAnchorTextDel : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B : Invalid Native Object"); + if (argc == 0) { + cocos2d::Color3B ret = cobj->getAnchorTextOutlineColor3B(); + jsval jsret = JSVAL_NULL; + jsret = cccolor3b_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_stringWithColor4B(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_stringWithColor4B : Invalid Native Object"); + if (argc == 1) { + cocos2d::Color4B arg0; + ok &= jsval_to_cccolor4b(cx, args.get(0), &arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_stringWithColor4B : Error processing arguments"); + std::string ret = cobj->stringWithColor4B(arg0); + jsval jsret = JSVAL_NULL; + jsret = std_string_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_stringWithColor4B : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_initWithXML(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_initWithXML : Invalid Native Object"); + if (argc == 2) { + std::string arg0; + cocos2d::ValueMap arg1; + ok &= jsval_to_std_string(cx, args.get(0), &arg0); + ok &= jsval_to_ccvaluemap(cx, args.get(1), &arg1); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_initWithXML : Error processing arguments"); + bool ret = cobj->initWithXML(arg0, arg1); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + if (argc == 3) { + std::string arg0; + cocos2d::ValueMap arg1; + std::function &)> arg2; + ok &= jsval_to_std_string(cx, args.get(0), &arg0); + ok &= jsval_to_ccvaluemap(cx, args.get(1), &arg1); + do { + if(JS_TypeOfValue(cx, args.get(2)) == JSTYPE_FUNCTION) + { + JS::RootedObject jstarget(cx, args.thisv().toObjectOrNull()); + std::shared_ptr func(new JSFunctionWrapper(cx, jstarget, args.get(2), args.thisv())); + auto lambda = [=](const std::basic_string & larg0) -> void { + JSB_AUTOCOMPARTMENT_WITH_GLOBAL_OBJCET + jsval largv[1]; + largv[0] = std_string_to_jsval(cx, larg0); + JS::RootedValue rval(cx); + bool succeed = func->invoke(1, &largv[0], &rval); + if (!succeed && JS_IsExceptionPending(cx)) { + JS_ReportPendingException(cx); + } + }; + arg2 = lambda; + } + else + { + arg2 = nullptr; + } + } while(0) + ; + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_initWithXML : Error processing arguments"); + bool ret = cobj->initWithXML(arg0, arg1, arg2); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_initWithXML : wrong number of arguments: %d, was expecting %d", argc, 2); + return false; +} +bool js_cocos2dx_ui_RichText_getAnchorFontColor3B(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getAnchorFontColor3B : Invalid Native Object"); + if (argc == 0) { + cocos2d::Color3B ret = cobj->getAnchorFontColor3B(); + jsval jsret = JSVAL_NULL; + jsret = cccolor3b_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getAnchorFontColor3B : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_formatText(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_formatText : Invalid Native Object"); + if (argc == 0) { + cobj->formatText(); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_formatText : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_getAnchorTextGlowColor3B(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getAnchorTextGlowColor3B : Invalid Native Object"); + if (argc == 0) { + cocos2d::Color3B ret = cobj->getAnchorTextGlowColor3B(); + jsval jsret = JSVAL_NULL; + jsret = cccolor3b_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getAnchorTextGlowColor3B : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_openUrl(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_openUrl : Invalid Native Object"); + if (argc == 1) { + std::string arg0; + ok &= jsval_to_std_string(cx, args.get(0), &arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_openUrl : Error processing arguments"); + cobj->openUrl(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_openUrl : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_getFontFace(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getFontFace : Invalid Native Object"); + if (argc == 0) { + std::string ret = cobj->getFontFace(); + jsval jsret = JSVAL_NULL; + jsret = std_string_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getFontFace : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_setFontColor(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setFontColor : Invalid Native Object"); + if (argc == 1) { + std::string arg0; + ok &= jsval_to_std_string(cx, args.get(0), &arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setFontColor : Error processing arguments"); + cobj->setFontColor(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setFontColor : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_isAnchorTextGlowEnabled(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_isAnchorTextGlowEnabled : Invalid Native Object"); + if (argc == 0) { + bool ret = cobj->isAnchorTextGlowEnabled(); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_isAnchorTextGlowEnabled : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_getDefaults(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getDefaults : Invalid Native Object"); + if (argc == 0) { + cocos2d::ValueMap ret = cobj->getDefaults(); + jsval jsret = JSVAL_NULL; + jsret = ccvaluemap_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getDefaults : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled : Invalid Native Object"); + if (argc == 0) { + bool ret = cobj->isAnchorTextUnderlineEnabled(); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_getFontColor(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getFontColor : Invalid Native Object"); + if (argc == 0) { + std::string ret = cobj->getFontColor(); + jsval jsret = JSVAL_NULL; + jsret = std_string_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getFontColor : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_isAnchorTextShadowEnabled(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_isAnchorTextShadowEnabled : Invalid Native Object"); + if (argc == 0) { + bool ret = cobj->isAnchorTextShadowEnabled(); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_isAnchorTextShadowEnabled : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_getAnchorTextOutlineSize(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getAnchorTextOutlineSize : Invalid Native Object"); + if (argc == 0) { + int ret = cobj->getAnchorTextOutlineSize(); + jsval jsret = JSVAL_NULL; + jsret = int32_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getAnchorTextOutlineSize : wrong number of arguments: %d, was expecting %d", argc, 0); return false; } bool js_cocos2dx_ui_RichText_setVerticalSpace(JSContext *cx, uint32_t argc, jsval *vp) @@ -13745,60 +14909,82 @@ bool js_cocos2dx_ui_RichText_setVerticalSpace(JSContext *cx, uint32_t argc, jsva JS_ReportError(cx, "js_cocos2dx_ui_RichText_setVerticalSpace : wrong number of arguments: %d, was expecting %d", argc, 1); return false; } -bool js_cocos2dx_ui_RichText_getWrapMode(JSContext *cx, uint32_t argc, jsval *vp) +bool js_cocos2dx_ui_RichText_isAnchorTextDelEnabled(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); js_proxy_t *proxy = jsb_get_js_proxy(obj); cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); - JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getWrapMode : Invalid Native Object"); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_isAnchorTextDelEnabled : Invalid Native Object"); if (argc == 0) { - int ret = (int)cobj->getWrapMode(); - jsval jsret = JSVAL_NULL; - jsret = int32_to_jsval(cx, ret); - args.rval().set(jsret); - return true; - } - - JS_ReportError(cx, "js_cocos2dx_ui_RichText_getWrapMode : wrong number of arguments: %d, was expecting %d", argc, 0); - return false; -} -bool js_cocos2dx_ui_RichText_formatText(JSContext *cx, uint32_t argc, jsval *vp) -{ - JS::CallArgs args = JS::CallArgsFromVp(argc, vp); - JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); - js_proxy_t *proxy = jsb_get_js_proxy(obj); - cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); - JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_formatText : Invalid Native Object"); - if (argc == 0) { - cobj->formatText(); - args.rval().setUndefined(); - return true; - } - - JS_ReportError(cx, "js_cocos2dx_ui_RichText_formatText : wrong number of arguments: %d, was expecting %d", argc, 0); - return false; -} -bool js_cocos2dx_ui_RichText_initWithXML(JSContext *cx, uint32_t argc, jsval *vp) -{ - JS::CallArgs args = JS::CallArgsFromVp(argc, vp); - bool ok = true; - JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); - js_proxy_t *proxy = jsb_get_js_proxy(obj); - cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); - JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_initWithXML : Invalid Native Object"); - if (argc == 1) { - std::string arg0; - ok &= jsval_to_std_string(cx, args.get(0), &arg0); - JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_initWithXML : Error processing arguments"); - bool ret = cobj->initWithXML(arg0); + bool ret = cobj->isAnchorTextDelEnabled(); jsval jsret = JSVAL_NULL; jsret = BOOLEAN_TO_JSVAL(ret); args.rval().set(jsret); return true; } - JS_ReportError(cx, "js_cocos2dx_ui_RichText_initWithXML : wrong number of arguments: %d, was expecting %d", argc, 1); + JS_ReportError(cx, "js_cocos2dx_ui_RichText_isAnchorTextDelEnabled : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_setDefaults(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setDefaults : Invalid Native Object"); + if (argc == 1) { + cocos2d::ValueMap arg0; + ok &= jsval_to_ccvaluemap(cx, args.get(0), &arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setDefaults : Error processing arguments"); + cobj->setDefaults(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setDefaults : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_setWrapMode(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setWrapMode : Invalid Native Object"); + if (argc == 1) { + cocos2d::ui::RichText::WrapMode arg0; + ok &= jsval_to_int32(cx, args.get(0), (int32_t *)&arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setWrapMode : Error processing arguments"); + cobj->setWrapMode(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setWrapMode : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_setFontSize(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setFontSize : Invalid Native Object"); + if (argc == 1) { + double arg0 = 0; + ok &= JS::ToNumber( cx, args.get(0), &arg0) && !isnan(arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setFontSize : Error processing arguments"); + cobj->setFontSize(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setFontSize : wrong number of arguments: %d, was expecting %d", argc, 1); return false; } bool js_cocos2dx_ui_RichText_removeElement(JSContext *cx, uint32_t argc, jsval *vp) @@ -13845,6 +15031,198 @@ bool js_cocos2dx_ui_RichText_removeElement(JSContext *cx, uint32_t argc, jsval * JS_ReportError(cx, "js_cocos2dx_ui_RichText_removeElement : wrong number of arguments"); return false; } +bool js_cocos2dx_ui_RichText_setAnchorTextItalic(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextItalic : Invalid Native Object"); + if (argc == 1) { + bool arg0; + arg0 = JS::ToBoolean(args.get(0)); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextItalic : Error processing arguments"); + cobj->setAnchorTextItalic(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setAnchorTextItalic : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_getAnchorTextShadowOffset(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getAnchorTextShadowOffset : Invalid Native Object"); + if (argc == 0) { + cocos2d::Size ret = cobj->getAnchorTextShadowOffset(); + jsval jsret = JSVAL_NULL; + jsret = ccsize_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getAnchorTextShadowOffset : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_isAnchorTextBoldEnabled(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_isAnchorTextBoldEnabled : Invalid Native Object"); + if (argc == 0) { + bool ret = cobj->isAnchorTextBoldEnabled(); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_isAnchorTextBoldEnabled : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_getAnchorTextShadowColor3B(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getAnchorTextShadowColor3B : Invalid Native Object"); + if (argc == 0) { + cocos2d::Color3B ret = cobj->getAnchorTextShadowColor3B(); + jsval jsret = JSVAL_NULL; + jsret = cccolor3b_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getAnchorTextShadowColor3B : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_stringWithColor3B(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_stringWithColor3B : Invalid Native Object"); + if (argc == 1) { + cocos2d::Color3B arg0; + ok &= jsval_to_cccolor3b(cx, args.get(0), &arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_stringWithColor3B : Error processing arguments"); + std::string ret = cobj->stringWithColor3B(arg0); + jsval jsret = JSVAL_NULL; + jsret = std_string_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_stringWithColor3B : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled : Invalid Native Object"); + if (argc == 0) { + bool ret = cobj->isAnchorTextOutlineEnabled(); + jsval jsret = JSVAL_NULL; + jsret = BOOLEAN_TO_JSVAL(ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_getFontColor3B(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getFontColor3B : Invalid Native Object"); + if (argc == 0) { + cocos2d::Color3B ret = cobj->getFontColor3B(); + jsval jsret = JSVAL_NULL; + jsret = cccolor3b_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getFontColor3B : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_getWrapMode(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_getWrapMode : Invalid Native Object"); + if (argc == 0) { + int ret = (int)cobj->getWrapMode(); + jsval jsret = JSVAL_NULL; + jsret = int32_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_getWrapMode : wrong number of arguments: %d, was expecting %d", argc, 0); + return false; +} +bool js_cocos2dx_ui_RichText_setAnchorTextUnderline(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextUnderline : Invalid Native Object"); + if (argc == 1) { + bool arg0; + arg0 = JS::ToBoolean(args.get(0)); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_setAnchorTextUnderline : Error processing arguments"); + cobj->setAnchorTextUnderline(arg0); + args.rval().setUndefined(); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_setAnchorTextUnderline : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} +bool js_cocos2dx_ui_RichText_color3BWithString(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + bool ok = true; + JS::RootedObject obj(cx, args.thisv().toObjectOrNull()); + js_proxy_t *proxy = jsb_get_js_proxy(obj); + cocos2d::ui::RichText* cobj = (cocos2d::ui::RichText *)(proxy ? proxy->ptr : NULL); + JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ui_RichText_color3BWithString : Invalid Native Object"); + if (argc == 1) { + std::string arg0; + ok &= jsval_to_std_string(cx, args.get(0), &arg0); + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_color3BWithString : Error processing arguments"); + cocos2d::Color3B ret = cobj->color3BWithString(arg0); + jsval jsret = JSVAL_NULL; + jsret = cccolor3b_to_jsval(cx, ret); + args.rval().set(jsret); + return true; + } + + JS_ReportError(cx, "js_cocos2dx_ui_RichText_color3BWithString : wrong number of arguments: %d, was expecting %d", argc, 1); + return false; +} bool js_cocos2dx_ui_RichText_create(JSContext *cx, uint32_t argc, jsval *vp) { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); @@ -13864,12 +15242,51 @@ bool js_cocos2dx_ui_RichText_createWithXML(JSContext *cx, uint32_t argc, jsval * { JS::CallArgs args = JS::CallArgsFromVp(argc, vp); bool ok = true; - if (argc == 1) { + if (argc == 2) { std::string arg0; + cocos2d::ValueMap arg1; ok &= jsval_to_std_string(cx, args.get(0), &arg0); + ok &= jsval_to_ccvaluemap(cx, args.get(1), &arg1); JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_createWithXML : Error processing arguments"); - auto ret = cocos2d::ui::RichText::createWithXML(arg0); + auto ret = cocos2d::ui::RichText::createWithXML(arg0, arg1); + js_type_class_t *typeClass = js_get_type_from_native(ret); + JS::RootedObject jsret(cx, jsb_ref_autoreleased_create_jsobject(cx, ret, typeClass, "cocos2d::ui::RichText")); + args.rval().set(OBJECT_TO_JSVAL(jsret)); + return true; + } + if (argc == 3) { + std::string arg0; + cocos2d::ValueMap arg1; + std::function &)> arg2; + ok &= jsval_to_std_string(cx, args.get(0), &arg0); + ok &= jsval_to_ccvaluemap(cx, args.get(1), &arg1); + do { + if(JS_TypeOfValue(cx, args.get(2)) == JSTYPE_FUNCTION) + { + JS::RootedObject jstarget(cx, args.thisv().toObjectOrNull()); + std::shared_ptr func(new JSFunctionWrapper(cx, jstarget, args.get(2), args.thisv())); + auto lambda = [=](const std::basic_string & larg0) -> void { + JSB_AUTOCOMPARTMENT_WITH_GLOBAL_OBJCET + jsval largv[1]; + largv[0] = std_string_to_jsval(cx, larg0); + JS::RootedValue rval(cx); + bool succeed = func->invoke(1, &largv[0], &rval); + if (!succeed && JS_IsExceptionPending(cx)) { + JS_ReportPendingException(cx); + } + }; + arg2 = lambda; + } + else + { + arg2 = nullptr; + } + } while(0) + ; + JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_ui_RichText_createWithXML : Error processing arguments"); + + auto ret = cocos2d::ui::RichText::createWithXML(arg0, arg1, arg2); js_type_class_t *typeClass = js_get_type_from_native(ret); JS::RootedObject jsret(cx, jsb_ref_autoreleased_create_jsobject(cx, ret, typeClass, "cocos2d::ui::RichText")); args.rval().set(OBJECT_TO_JSVAL(jsret)); @@ -13930,20 +15347,56 @@ void js_register_cocos2dx_ui_RichText(JSContext *cx, JS::HandleObject global) { static JSFunctionSpec funcs[] = { JS_FN("insertElement", js_cocos2dx_ui_RichText_insertElement, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setAnchorTextOutline", js_cocos2dx_ui_RichText_setAnchorTextOutline, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getFontSize", js_cocos2dx_ui_RichText_getFontSize, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("pushBackElement", js_cocos2dx_ui_RichText_pushBackElement, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), - JS_FN("setWrapMode", js_cocos2dx_ui_RichText_setWrapMode, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), - JS_FN("setVerticalSpace", js_cocos2dx_ui_RichText_setVerticalSpace, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), - JS_FN("getWrapMode", js_cocos2dx_ui_RichText_getWrapMode, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setAnchorTextBold", js_cocos2dx_ui_RichText_setAnchorTextBold, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getAnchorFontColor", js_cocos2dx_ui_RichText_getAnchorFontColor, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getAnchorTextShadowBlurRadius", js_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setAnchorTextShadow", js_cocos2dx_ui_RichText_setAnchorTextShadow, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("isAnchorTextItalicEnabled", js_cocos2dx_ui_RichText_isAnchorTextItalicEnabled, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setAnchorFontColor", js_cocos2dx_ui_RichText_setAnchorFontColor, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setFontFace", js_cocos2dx_ui_RichText_setFontFace, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setAnchorTextGlow", js_cocos2dx_ui_RichText_setAnchorTextGlow, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setAnchorTextDel", js_cocos2dx_ui_RichText_setAnchorTextDel, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getAnchorTextOutlineColor3B", js_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("stringWithColor4B", js_cocos2dx_ui_RichText_stringWithColor4B, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("initWithXML", js_cocos2dx_ui_RichText_initWithXML, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getAnchorFontColor3B", js_cocos2dx_ui_RichText_getAnchorFontColor3B, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("formatText", js_cocos2dx_ui_RichText_formatText, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), - JS_FN("initWithXML", js_cocos2dx_ui_RichText_initWithXML, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getAnchorTextGlowColor3B", js_cocos2dx_ui_RichText_getAnchorTextGlowColor3B, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("openUrl", js_cocos2dx_ui_RichText_openUrl, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getFontFace", js_cocos2dx_ui_RichText_getFontFace, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setFontColor", js_cocos2dx_ui_RichText_setFontColor, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("isAnchorTextGlowEnabled", js_cocos2dx_ui_RichText_isAnchorTextGlowEnabled, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getDefaults", js_cocos2dx_ui_RichText_getDefaults, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("isAnchorTextUnderlineEnabled", js_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getFontColor", js_cocos2dx_ui_RichText_getFontColor, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("isAnchorTextShadowEnabled", js_cocos2dx_ui_RichText_isAnchorTextShadowEnabled, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getAnchorTextOutlineSize", js_cocos2dx_ui_RichText_getAnchorTextOutlineSize, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setVerticalSpace", js_cocos2dx_ui_RichText_setVerticalSpace, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("isAnchorTextDelEnabled", js_cocos2dx_ui_RichText_isAnchorTextDelEnabled, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setDefaults", js_cocos2dx_ui_RichText_setDefaults, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setWrapMode", js_cocos2dx_ui_RichText_setWrapMode, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setFontSize", js_cocos2dx_ui_RichText_setFontSize, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("removeElement", js_cocos2dx_ui_RichText_removeElement, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setAnchorTextItalic", js_cocos2dx_ui_RichText_setAnchorTextItalic, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getAnchorTextShadowOffset", js_cocos2dx_ui_RichText_getAnchorTextShadowOffset, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("isAnchorTextBoldEnabled", js_cocos2dx_ui_RichText_isAnchorTextBoldEnabled, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getAnchorTextShadowColor3B", js_cocos2dx_ui_RichText_getAnchorTextShadowColor3B, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("stringWithColor3B", js_cocos2dx_ui_RichText_stringWithColor3B, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("isAnchorTextOutlineEnabled", js_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getFontColor3B", js_cocos2dx_ui_RichText_getFontColor3B, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("getWrapMode", js_cocos2dx_ui_RichText_getWrapMode, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("setAnchorTextUnderline", js_cocos2dx_ui_RichText_setAnchorTextUnderline, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("color3BWithString", js_cocos2dx_ui_RichText_color3BWithString, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("ctor", js_cocos2dx_ui_RichText_ctor, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FS_END }; static JSFunctionSpec st_funcs[] = { JS_FN("create", js_cocos2dx_ui_RichText_create, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), - JS_FN("createWithXML", js_cocos2dx_ui_RichText_createWithXML, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), + JS_FN("createWithXML", js_cocos2dx_ui_RichText_createWithXML, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FS_END }; @@ -18797,6 +20250,7 @@ void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj) { js_register_cocos2dx_ui_ScrollView(cx, ns); js_register_cocos2dx_ui_ListView(cx, ns); js_register_cocos2dx_ui_TabHeader(cx, ns); + js_register_cocos2dx_ui_RichElementNewLine(cx, ns); js_register_cocos2dx_ui_LayoutComponent(cx, ns); js_register_cocos2dx_ui_Button(cx, ns); js_register_cocos2dx_ui_LayoutParameter(cx, ns); diff --git a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.hpp b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.hpp index 6be1b25140..da2f26d2ae 100644 --- a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.hpp +++ b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_ui_auto.hpp @@ -685,7 +685,9 @@ bool js_cocos2dx_ui_RichElement_constructor(JSContext *cx, uint32_t argc, jsval void js_cocos2dx_ui_RichElement_finalize(JSContext *cx, JSObject *obj); void js_register_cocos2dx_ui_RichElement(JSContext *cx, JS::HandleObject global); void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj); +bool js_cocos2dx_ui_RichElement_equalType(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElement_init(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichElement_setColor(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElement_RichElement(JSContext *cx, uint32_t argc, jsval *vp); extern JSClass *jsb_cocos2d_ui_RichElementText_class; @@ -709,6 +711,7 @@ void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj); bool js_cocos2dx_ui_RichElementImage_setHeight(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementImage_init(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementImage_setWidth(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichElementImage_setUrl(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementImage_create(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementImage_RichElementImage(JSContext *cx, uint32_t argc, jsval *vp); @@ -723,6 +726,16 @@ bool js_cocos2dx_ui_RichElementCustomNode_init(JSContext *cx, uint32_t argc, jsv bool js_cocos2dx_ui_RichElementCustomNode_create(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichElementCustomNode_RichElementCustomNode(JSContext *cx, uint32_t argc, jsval *vp); +extern JSClass *jsb_cocos2d_ui_RichElementNewLine_class; +extern JSObject *jsb_cocos2d_ui_RichElementNewLine_prototype; + +bool js_cocos2dx_ui_RichElementNewLine_constructor(JSContext *cx, uint32_t argc, jsval *vp); +void js_cocos2dx_ui_RichElementNewLine_finalize(JSContext *cx, JSObject *obj); +void js_register_cocos2dx_ui_RichElementNewLine(JSContext *cx, JS::HandleObject global); +void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj); +bool js_cocos2dx_ui_RichElementNewLine_create(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichElementNewLine_RichElementNewLine(JSContext *cx, uint32_t argc, jsval *vp); + extern JSClass *jsb_cocos2d_ui_RichText_class; extern JSObject *jsb_cocos2d_ui_RichText_prototype; @@ -731,13 +744,49 @@ void js_cocos2dx_ui_RichText_finalize(JSContext *cx, JSObject *obj); void js_register_cocos2dx_ui_RichText(JSContext *cx, JS::HandleObject global); void register_all_cocos2dx_ui(JSContext* cx, JS::HandleObject obj); bool js_cocos2dx_ui_RichText_insertElement(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setAnchorTextOutline(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getFontSize(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_pushBackElement(JSContext *cx, uint32_t argc, jsval *vp); -bool js_cocos2dx_ui_RichText_setWrapMode(JSContext *cx, uint32_t argc, jsval *vp); -bool js_cocos2dx_ui_RichText_setVerticalSpace(JSContext *cx, uint32_t argc, jsval *vp); -bool js_cocos2dx_ui_RichText_getWrapMode(JSContext *cx, uint32_t argc, jsval *vp); -bool js_cocos2dx_ui_RichText_formatText(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setAnchorTextBold(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getAnchorFontColor(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setAnchorTextShadow(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_isAnchorTextItalicEnabled(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setAnchorFontColor(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setFontFace(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setAnchorTextGlow(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setAnchorTextDel(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_stringWithColor4B(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_initWithXML(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getAnchorFontColor3B(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_formatText(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getAnchorTextGlowColor3B(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_openUrl(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getFontFace(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setFontColor(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_isAnchorTextGlowEnabled(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getDefaults(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getFontColor(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_isAnchorTextShadowEnabled(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getAnchorTextOutlineSize(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setVerticalSpace(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_isAnchorTextDelEnabled(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setDefaults(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setWrapMode(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setFontSize(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_removeElement(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setAnchorTextItalic(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getAnchorTextShadowOffset(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_isAnchorTextBoldEnabled(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getAnchorTextShadowColor3B(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_stringWithColor3B(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getFontColor3B(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_getWrapMode(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_setAnchorTextUnderline(JSContext *cx, uint32_t argc, jsval *vp); +bool js_cocos2dx_ui_RichText_color3BWithString(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_create(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_createWithXML(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_ui_RichText_RichText(JSContext *cx, uint32_t argc, jsval *vp); diff --git a/cocos/scripting/lua-bindings/auto/api/Console.lua b/cocos/scripting/lua-bindings/auto/api/Console.lua index 7c6bb0ca11..a60f9b10c9 100644 --- a/cocos/scripting/lua-bindings/auto/api/Console.lua +++ b/cocos/scripting/lua-bindings/auto/api/Console.lua @@ -4,6 +4,15 @@ -- @extend Ref -- @parent_module cc +-------------------------------- +-- @overload self, cc.Console::Command, cc.Console::Command +-- @overload self, string, cc.Console::Command +-- @function [parent=#Console] addSubCommand +-- @param self +-- @param #string cmdName +-- @param #cc.Console::Command subCmd +-- @return Console#Console self (return value: cc.Console) + -------------------------------- -- starts listening to specified TCP port -- @function [parent=#Console] listenOnTCP @@ -19,11 +28,19 @@ -- @return Console#Console self (return value: cc.Console) -------------------------------- --- set bind address
--- address : 127.0.0.1 --- @function [parent=#Console] setBindAddress +-- @overload self, cc.Console::Command, string +-- @overload self, string, string +-- @function [parent=#Console] getSubCommand -- @param self --- @param #string address +-- @param #string cmdName +-- @param #string subCmdName +-- @return Console::Command#Console::Command ret (return value: cc.Console::Command) + +-------------------------------- +-- delete custom command +-- @function [parent=#Console] delCommand +-- @param self +-- @param #string cmdName -- @return Console#Console self (return value: cc.Console) -------------------------------- @@ -32,6 +49,13 @@ -- @param self -- @return Console#Console self (return value: cc.Console) +-------------------------------- +-- get custom command +-- @function [parent=#Console] getCommand +-- @param self +-- @param #string cmdName +-- @return Console::Command#Console::Command ret (return value: cc.Console::Command) + -------------------------------- -- starts listening to specified file descriptor -- @function [parent=#Console] listenOnFileDescriptor @@ -39,4 +63,21 @@ -- @param #int fd -- @return bool#bool ret (return value: bool) +-------------------------------- +-- set bind address
+-- address : 127.0.0.1 +-- @function [parent=#Console] setBindAddress +-- @param self +-- @param #string address +-- @return Console#Console self (return value: cc.Console) + +-------------------------------- +-- @overload self, cc.Console::Command, string +-- @overload self, string, string +-- @function [parent=#Console] delSubCommand +-- @param self +-- @param #string cmdName +-- @param #string subCmdName +-- @return Console#Console self (return value: cc.Console) + return nil diff --git a/cocos/scripting/lua-bindings/auto/api/RichElement.lua b/cocos/scripting/lua-bindings/auto/api/RichElement.lua index e6872d3ac3..15bf3a3708 100644 --- a/cocos/scripting/lua-bindings/auto/api/RichElement.lua +++ b/cocos/scripting/lua-bindings/auto/api/RichElement.lua @@ -4,6 +4,13 @@ -- @extend Ref -- @parent_module ccui +-------------------------------- +-- +-- @function [parent=#RichElement] equalType +-- @param self +-- @param #int type +-- @return bool#bool ret (return value: bool) + -------------------------------- -- brief Initialize a rich element with different arguments.
-- param tag A integer tag value.
@@ -17,6 +24,13 @@ -- @param #unsigned char opacity -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#RichElement] setColor +-- @param self +-- @param #color3b_table color +-- @return RichElement#RichElement self (return value: ccui.RichElement) + -------------------------------- -- brief Default constructor.
-- js ctor
diff --git a/cocos/scripting/lua-bindings/auto/api/RichElementImage.lua b/cocos/scripting/lua-bindings/auto/api/RichElementImage.lua index 4782a55978..2a3503efdf 100644 --- a/cocos/scripting/lua-bindings/auto/api/RichElementImage.lua +++ b/cocos/scripting/lua-bindings/auto/api/RichElementImage.lua @@ -17,6 +17,7 @@ -- param color A color in Color3B.
-- param opacity A opacity in GLubyte.
-- param filePath A image file name.
+-- param url uniform resource locator
-- return True if initialize success, false otherwise. -- @function [parent=#RichElementImage] init -- @param self @@ -24,6 +25,7 @@ -- @param #color3b_table color -- @param #unsigned char opacity -- @param #string filePath +-- @param #string url -- @return bool#bool ret (return value: bool) -------------------------------- @@ -33,12 +35,20 @@ -- @param #int width -- @return RichElementImage#RichElementImage self (return value: ccui.RichElementImage) +-------------------------------- +-- +-- @function [parent=#RichElementImage] setUrl +-- @param self +-- @param #string url +-- @return RichElementImage#RichElementImage self (return value: ccui.RichElementImage) + -------------------------------- -- brief Create a RichElementImage with various arguments.
-- param tag A integer tag value.
-- param color A color in Color3B.
-- param opacity A opacity in GLubyte.
-- param filePath A image file name.
+-- param url uniform resource locator
-- return A RichElementImage instance. -- @function [parent=#RichElementImage] create -- @param self @@ -46,6 +56,7 @@ -- @param #color3b_table color -- @param #unsigned char opacity -- @param #string filePath +-- @param #string url -- @return RichElementImage#RichElementImage ret (return value: ccui.RichElementImage) -------------------------------- diff --git a/cocos/scripting/lua-bindings/auto/api/RichElementText.lua b/cocos/scripting/lua-bindings/auto/api/RichElementText.lua index 8855119c59..5d97351bb2 100644 --- a/cocos/scripting/lua-bindings/auto/api/RichElementText.lua +++ b/cocos/scripting/lua-bindings/auto/api/RichElementText.lua @@ -12,7 +12,14 @@ -- param text Content string.
-- param fontName Content font name.
-- param fontSize Content font size.
--- param flags: italics, bold, underline or strikethrough
+-- param flags: italics, bold, underline, strikethrough, url, outline, shadow or glow
+-- param url uniform resource locator
+-- param outlineColor the color of the outline
+-- param outlineSize the outline effect size value
+-- param shadowColor the shadow effect color value
+-- param shadowOffset shadow effect offset value
+-- param shadowBlurRadius the shadow effect blur radius
+-- param glowColor glow color
-- return True if initialize success, false otherwise. -- @function [parent=#RichElementText] init -- @param self @@ -24,6 +31,12 @@ -- @param #float fontSize -- @param #unsigned int flags -- @param #string url +-- @param #color3b_table outlineColor +-- @param #int outlineSize +-- @param #color3b_table shadowColor +-- @param #size_table shadowOffset +-- @param #int shadowBlurRadius +-- @param #color3b_table glowColor -- @return bool#bool ret (return value: bool) -------------------------------- @@ -34,7 +47,14 @@ -- param text Content string.
-- param fontName Content font name.
-- param fontSize Content font size.
--- param flags: italics, bold, underline or strikethrough
+-- param flags: italics, bold, underline, strikethrough, url, outline, shadow or glow
+-- param url uniform resource locator
+-- param outlineColor the color of the outline
+-- param outlineSize the outline effect size value
+-- param shadowColor the shadow effect color value
+-- param shadowOffset shadow effect offset value
+-- param shadowBlurRadius the shadow effect blur radius
+-- param glowColor glow color
-- return RichElementText instance. -- @function [parent=#RichElementText] create -- @param self @@ -46,6 +66,12 @@ -- @param #float fontSize -- @param #unsigned int flags -- @param #string url +-- @param #color3b_table outlineColor +-- @param #int outlineSize +-- @param #color3b_table shadowColor +-- @param #size_table shadowOffset +-- @param #int shadowBlurRadius +-- @param #color3b_table glowColor -- @return RichElementText#RichElementText ret (return value: ccui.RichElementText) -------------------------------- diff --git a/cocos/scripting/lua-bindings/auto/api/RichText.lua b/cocos/scripting/lua-bindings/auto/api/RichText.lua index 5a8919206a..4a255887e4 100644 --- a/cocos/scripting/lua-bindings/auto/api/RichText.lua +++ b/cocos/scripting/lua-bindings/auto/api/RichText.lua @@ -14,6 +14,21 @@ -- @param #int index -- @return RichText#RichText self (return value: ccui.RichText) +-------------------------------- +-- @breif enable the outline of a-tag +-- @function [parent=#RichText] setAnchorTextOutline +-- @param self +-- @param #bool enable +-- @param #color3b_table outlineColor +-- @param #int outlineSize +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] getFontSize +-- @param self +-- @return float#float ret (return value: float) + -------------------------------- -- brief Add a RichElement at the end of RichText.
-- param element A RichElement instance. @@ -23,26 +38,97 @@ -- @return RichText#RichText self (return value: ccui.RichText) -------------------------------- --- @brief sets the wrapping mode: WRAP_PER_CHAR or WRAP_PER_WORD --- @function [parent=#RichText] setWrapMode +-- +-- @function [parent=#RichText] setAnchorTextBold -- @param self --- @param #int wrapMode +-- @param #bool enable -- @return RichText#RichText self (return value: ccui.RichText) -------------------------------- --- brief Set vertical space between each RichElement.
--- param space Point in float. --- @function [parent=#RichText] setVerticalSpace +-- +-- @function [parent=#RichText] getAnchorFontColor -- @param self --- @param #float space --- @return RichText#RichText self (return value: ccui.RichText) +-- @return string#string ret (return value: string) -------------------------------- --- @brief returns the current wrapping mode --- @function [parent=#RichText] getWrapMode +-- +-- @function [parent=#RichText] getAnchorTextShadowBlurRadius -- @param self -- @return int#int ret (return value: int) +-------------------------------- +-- @breif enable the shadow of a-tag +-- @function [parent=#RichText] setAnchorTextShadow +-- @param self +-- @param #bool enable +-- @param #color3b_table shadowColor +-- @param #size_table offset +-- @param #int blurRadius +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] isAnchorTextItalicEnabled +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#RichText] setAnchorFontColor +-- @param self +-- @param #string color +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] setFontFace +-- @param self +-- @param #string face +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] setAnchorTextGlow +-- @param self +-- @param #bool enable +-- @param #color3b_table glowColor +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] setAnchorTextDel +-- @param self +-- @param #bool enable +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] getAnchorTextOutlineColor3B +-- @param self +-- @return color3b_table#color3b_table ret (return value: color3b_table) + +-------------------------------- +-- +-- @function [parent=#RichText] stringWithColor4B +-- @param self +-- @param #color4b_table color4b +-- @return string#string ret (return value: string) + +-------------------------------- +-- +-- @function [parent=#RichText] initWithXML +-- @param self +-- @param #string xml +-- @param #map_table defaults +-- @param #function handleOpenUrl +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#RichText] getAnchorFontColor3B +-- @param self +-- @return color3b_table#color3b_table ret (return value: color3b_table) + -------------------------------- -- brief Rearrange all RichElement in the RichText.
-- It's usually called internally. @@ -52,11 +138,101 @@ -------------------------------- -- --- @function [parent=#RichText] initWithXML +-- @function [parent=#RichText] getAnchorTextGlowColor3B +-- @param self +-- @return color3b_table#color3b_table ret (return value: color3b_table) + +-------------------------------- +-- +-- @function [parent=#RichText] openUrl +-- @param self +-- @param #string url +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] getFontFace +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- +-- @function [parent=#RichText] setFontColor +-- @param self +-- @param #string color +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] isAnchorTextGlowEnabled -- @param self --- @param #string xml -- @return bool#bool ret (return value: bool) +-------------------------------- +-- +-- @function [parent=#RichText] getDefaults +-- @param self +-- @return map_table#map_table ret (return value: map_table) + +-------------------------------- +-- +-- @function [parent=#RichText] isAnchorTextUnderlineEnabled +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#RichText] getFontColor +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- +-- @function [parent=#RichText] isAnchorTextShadowEnabled +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#RichText] getAnchorTextOutlineSize +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- brief Set vertical space between each RichElement.
+-- param space Point in float. +-- @function [parent=#RichText] setVerticalSpace +-- @param self +-- @param #float space +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] isAnchorTextDelEnabled +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#RichText] setDefaults +-- @param self +-- @param #map_table defaults +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] setWrapMode +-- @param self +-- @param #int wrapMode +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] setFontSize +-- @param self +-- @param #float size +-- @return RichText#RichText self (return value: ccui.RichText) + -------------------------------- -- @overload self, ccui.RichElement -- @overload self, int @@ -65,6 +241,70 @@ -- @param #int index -- @return RichText#RichText self (return value: ccui.RichText) +-------------------------------- +-- +-- @function [parent=#RichText] setAnchorTextItalic +-- @param self +-- @param #bool enable +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] getAnchorTextShadowOffset +-- @param self +-- @return size_table#size_table ret (return value: size_table) + +-------------------------------- +-- +-- @function [parent=#RichText] isAnchorTextBoldEnabled +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#RichText] getAnchorTextShadowColor3B +-- @param self +-- @return color3b_table#color3b_table ret (return value: color3b_table) + +-------------------------------- +-- +-- @function [parent=#RichText] stringWithColor3B +-- @param self +-- @param #color3b_table color3b +-- @return string#string ret (return value: string) + +-------------------------------- +-- +-- @function [parent=#RichText] isAnchorTextOutlineEnabled +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- +-- @function [parent=#RichText] getFontColor3B +-- @param self +-- @return color3b_table#color3b_table ret (return value: color3b_table) + +-------------------------------- +-- +-- @function [parent=#RichText] getWrapMode +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- +-- @function [parent=#RichText] setAnchorTextUnderline +-- @param self +-- @param #bool enable +-- @return RichText#RichText self (return value: ccui.RichText) + +-------------------------------- +-- +-- @function [parent=#RichText] color3BWithString +-- @param self +-- @param #string color +-- @return color3b_table#color3b_table ret (return value: color3b_table) + -------------------------------- -- brief Create a empty RichText.
-- return RichText instance. @@ -78,6 +318,8 @@ -- @function [parent=#RichText] createWithXML -- @param self -- @param #string xml +-- @param #map_table defaults +-- @param #function handleOpenUrl -- @return RichText#RichText ret (return value: ccui.RichText) -------------------------------- diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index fda3a14c8f..fd08949596 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -169,6 +169,72 @@ int lua_register_cocos2dx_Ref(lua_State* tolua_S) return 1; } +int lua_cocos2dx_Console_addSubCommand(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Console* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_addSubCommand'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + cocos2d::Console::Command arg0; + #pragma warning NO CONVERSION TO NATIVE FOR Command + ok = false; + + if (!ok) { break; } + cocos2d::Console::Command arg1; + #pragma warning NO CONVERSION TO NATIVE FOR Command + ok = false; + + if (!ok) { break; } + cobj->addSubCommand(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:addSubCommand"); + + if (!ok) { break; } + cocos2d::Console::Command arg1; + #pragma warning NO CONVERSION TO NATIVE FOR Command + ok = false; + + if (!ok) { break; } + cobj->addSubCommand(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:addSubCommand",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_addSubCommand'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) { int argc = 0; @@ -269,7 +335,71 @@ int lua_cocos2dx_Console_log(lua_State* tolua_S) return 0; } -int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S) +int lua_cocos2dx_Console_getSubCommand(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Console* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_getSubCommand'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + cocos2d::Console::Command arg0; + #pragma warning NO CONVERSION TO NATIVE FOR Command + ok = false; + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:getSubCommand"); + + if (!ok) { break; } + const cocos2d::Console::Command* ret = cobj->getSubCommand(arg0, arg1); + #pragma warning NO CONVERSION FROM NATIVE FOR Command*; + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:getSubCommand"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:getSubCommand"); + + if (!ok) { break; } + const cocos2d::Console::Command* ret = cobj->getSubCommand(arg0, arg1); + #pragma warning NO CONVERSION FROM NATIVE FOR Command*; + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:getSubCommand",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_getSubCommand'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_Console_delCommand(lua_State* tolua_S) { int argc = 0; cocos2d::Console* cobj = nullptr; @@ -289,7 +419,7 @@ int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_setBindAddress'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_delCommand'", nullptr); return 0; } #endif @@ -299,22 +429,22 @@ int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S) { std::string arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:setBindAddress"); + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:delCommand"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_setBindAddress'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_delCommand'", nullptr); return 0; } - cobj->setBindAddress(arg0); + cobj->delCommand(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:setBindAddress",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:delCommand",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_setBindAddress'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_delCommand'.",&tolua_err); #endif return 0; @@ -366,6 +496,56 @@ int lua_cocos2dx_Console_stop(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Console_getCommand(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Console* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_getCommand'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:getCommand"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_getCommand'", nullptr); + return 0; + } + const cocos2d::Console::Command* ret = cobj->getCommand(arg0); + #pragma warning NO CONVERSION FROM NATIVE FOR Command*; + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:getCommand",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_getCommand'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) { int argc = 0; @@ -416,6 +596,120 @@ int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) return 0; } +int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Console* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_setBindAddress'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:setBindAddress"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_setBindAddress'", nullptr); + return 0; + } + cobj->setBindAddress(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:setBindAddress",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_setBindAddress'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_Console_delSubCommand(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::Console* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_delSubCommand'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + cocos2d::Console::Command arg0; + #pragma warning NO CONVERSION TO NATIVE FOR Command + ok = false; + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:delSubCommand"); + + if (!ok) { break; } + cobj->delSubCommand(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 2) { + std::string arg0; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:delSubCommand"); + + if (!ok) { break; } + std::string arg1; + ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:delSubCommand"); + + if (!ok) { break; } + cobj->delSubCommand(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + }while(0); + ok = true; + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:delSubCommand",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_delSubCommand'.",&tolua_err); +#endif + + return 0; +} static int lua_cocos2dx_Console_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Console)"); @@ -428,11 +722,16 @@ int lua_register_cocos2dx_Console(lua_State* tolua_S) tolua_cclass(tolua_S,"Console","cc.Console","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Console"); + tolua_function(tolua_S,"addSubCommand",lua_cocos2dx_Console_addSubCommand); tolua_function(tolua_S,"listenOnTCP",lua_cocos2dx_Console_listenOnTCP); tolua_function(tolua_S,"log",lua_cocos2dx_Console_log); - tolua_function(tolua_S,"setBindAddress",lua_cocos2dx_Console_setBindAddress); + tolua_function(tolua_S,"getSubCommand",lua_cocos2dx_Console_getSubCommand); + tolua_function(tolua_S,"delCommand",lua_cocos2dx_Console_delCommand); tolua_function(tolua_S,"stop",lua_cocos2dx_Console_stop); + tolua_function(tolua_S,"getCommand",lua_cocos2dx_Console_getCommand); tolua_function(tolua_S,"listenOnFileDescriptor",lua_cocos2dx_Console_listenOnFileDescriptor); + tolua_function(tolua_S,"setBindAddress",lua_cocos2dx_Console_setBindAddress); + tolua_function(tolua_S,"delSubCommand",lua_cocos2dx_Console_delSubCommand); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Console).name(); g_luaType[typeName] = "cc.Console"; diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp index 86ab087b09..3fecb2e27c 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp @@ -2186,6 +2186,11 @@ int register_all_cocos2dx(lua_State* tolua_S); + + + + + diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp index 2d6c9c27f2..38b28f436f 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp @@ -24585,6 +24585,56 @@ int lua_register_cocos2dx_ui_Helper(lua_State* tolua_S) return 1; } +int lua_cocos2dx_ui_RichElement_equalType(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichElement* 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.RichElement",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichElement*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichElement_equalType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::ui::RichElement::Type arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElement:equalType"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElement_equalType'", nullptr); + return 0; + } + bool ret = cobj->equalType(arg0); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichElement:equalType",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichElement_equalType'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_RichElement_init(lua_State* tolua_S) { int argc = 0; @@ -24641,6 +24691,56 @@ int lua_cocos2dx_ui_RichElement_init(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_RichElement_setColor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichElement* 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.RichElement",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichElement*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichElement_setColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.RichElement:setColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElement_setColor'", nullptr); + return 0; + } + cobj->setColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichElement:setColor",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichElement_setColor'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_RichElement_constructor(lua_State* tolua_S) { int argc = 0; @@ -24691,7 +24791,9 @@ int lua_register_cocos2dx_ui_RichElement(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RichElement"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_RichElement_constructor); + tolua_function(tolua_S,"equalType",lua_cocos2dx_ui_RichElement_equalType); tolua_function(tolua_S,"init",lua_cocos2dx_ui_RichElement_init); + tolua_function(tolua_S,"setColor",lua_cocos2dx_ui_RichElement_setColor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ui::RichElement).name(); g_luaType[typeName] = "ccui.RichElement"; @@ -24760,6 +24862,279 @@ int lua_cocos2dx_ui_RichElementText_init(lua_State* tolua_S) tolua_pushboolean(tolua_S,(bool)ret); return 1; } + if (argc == 9) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:init"); + + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:init"); + + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:init"); + + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 10) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + int arg9; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:init"); + + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:init"); + + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:init"); + + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:init"); + + ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "ccui.RichElementText:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 11) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + int arg9; + cocos2d::Color3B arg10; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:init"); + + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:init"); + + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:init"); + + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:init"); + + ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 12, &arg10, "ccui.RichElementText:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 12) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + int arg9; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:init"); + + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:init"); + + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:init"); + + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:init"); + + ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 12, &arg10, "ccui.RichElementText:init"); + + ok &= luaval_to_size(tolua_S, 13, &arg11, "ccui.RichElementText:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 13) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + int arg9; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + int arg12; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:init"); + + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:init"); + + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:init"); + + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:init"); + + ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 12, &arg10, "ccui.RichElementText:init"); + + ok &= luaval_to_size(tolua_S, 13, &arg11, "ccui.RichElementText:init"); + + ok &= luaval_to_int32(tolua_S, 14,(int *)&arg12, "ccui.RichElementText:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 14) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + int arg9; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + int arg12; + cocos2d::Color3B arg13; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:init"); + + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:init"); + + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:init"); + + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:init"); + + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:init"); + + ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 12, &arg10, "ccui.RichElementText:init"); + + ok &= luaval_to_size(tolua_S, 13, &arg11, "ccui.RichElementText:init"); + + ok &= luaval_to_int32(tolua_S, 14,(int *)&arg12, "ccui.RichElementText:init"); + + ok &= luaval_to_color3b(tolua_S, 15, &arg13, "ccui.RichElementText:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichElementText:init",argc, 8); return 0; @@ -24860,6 +25235,210 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); return 1; } + if (argc == 9) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:create"); + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:create"); + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:create"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); + return 0; + } + cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + return 1; + } + if (argc == 10) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + int arg9; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:create"); + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:create"); + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:create"); + ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "ccui.RichElementText:create"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); + return 0; + } + cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); + object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + return 1; + } + if (argc == 11) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + int arg9; + cocos2d::Color3B arg10; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:create"); + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:create"); + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:create"); + ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 12, &arg10, "ccui.RichElementText:create"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); + return 0; + } + cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); + object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + return 1; + } + if (argc == 12) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + int arg9; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:create"); + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:create"); + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:create"); + ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 12, &arg10, "ccui.RichElementText:create"); + ok &= luaval_to_size(tolua_S, 13, &arg11, "ccui.RichElementText:create"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); + return 0; + } + cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); + object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + return 1; + } + if (argc == 13) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + int arg9; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + int arg12; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:create"); + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:create"); + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:create"); + ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 12, &arg10, "ccui.RichElementText:create"); + ok &= luaval_to_size(tolua_S, 13, &arg11, "ccui.RichElementText:create"); + ok &= luaval_to_int32(tolua_S, 14,(int *)&arg12, "ccui.RichElementText:create"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); + return 0; + } + cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); + object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + return 1; + } + if (argc == 14) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + double arg5; + unsigned int arg6; + std::string arg7; + cocos2d::Color3B arg8; + int arg9; + cocos2d::Color3B arg10; + cocos2d::Size arg11; + int arg12; + cocos2d::Color3B arg13; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementText:create"); + ok &= luaval_to_number(tolua_S, 7,&arg5, "ccui.RichElementText:create"); + ok &= luaval_to_uint32(tolua_S, 8,&arg6, "ccui.RichElementText:create"); + ok &= luaval_to_std_string(tolua_S, 9,&arg7, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 10, &arg8, "ccui.RichElementText:create"); + ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 12, &arg10, "ccui.RichElementText:create"); + ok &= luaval_to_size(tolua_S, 13, &arg11, "ccui.RichElementText:create"); + ok &= luaval_to_int32(tolua_S, 14,(int *)&arg12, "ccui.RichElementText:create"); + ok &= luaval_to_color3b(tolua_S, 15, &arg13, "ccui.RichElementText:create"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); + return 0; + } + cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); + object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + return 1; + } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RichElementText:create",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 @@ -25026,6 +25605,32 @@ int lua_cocos2dx_ui_RichElementImage_init(lua_State* tolua_S) tolua_pushboolean(tolua_S,(bool)ret); return 1; } + if (argc == 5) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementImage:init"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementImage:init"); + + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementImage:init"); + + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementImage:init"); + + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementImage:init"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementImage_init'", nullptr); + return 0; + } + bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichElementImage:init",argc, 4); return 0; @@ -25086,6 +25691,56 @@ int lua_cocos2dx_ui_RichElementImage_setWidth(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_RichElementImage_setUrl(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichElementImage* 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.RichElementImage",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichElementImage_setUrl'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.RichElementImage:setUrl"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementImage_setUrl'", nullptr); + return 0; + } + cobj->setUrl(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichElementImage:setUrl",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichElementImage_setUrl'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_RichElementImage_create(lua_State* tolua_S) { int argc = 0; @@ -25120,6 +25775,27 @@ int lua_cocos2dx_ui_RichElementImage_create(lua_State* tolua_S) object_to_luaval(tolua_S, "ccui.RichElementImage",(cocos2d::ui::RichElementImage*)ret); return 1; } + if (argc == 5) + { + int arg0; + cocos2d::Color3B arg1; + uint16_t arg2; + std::string arg3; + std::string arg4; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementImage:create"); + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementImage:create"); + ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementImage:create"); + ok &= luaval_to_std_string(tolua_S, 5,&arg3, "ccui.RichElementImage:create"); + ok &= luaval_to_std_string(tolua_S, 6,&arg4, "ccui.RichElementImage:create"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementImage_create'", nullptr); + return 0; + } + cocos2d::ui::RichElementImage* ret = cocos2d::ui::RichElementImage::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "ccui.RichElementImage",(cocos2d::ui::RichElementImage*)ret); + return 1; + } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RichElementImage:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 @@ -25181,6 +25857,7 @@ int lua_register_cocos2dx_ui_RichElementImage(lua_State* tolua_S) tolua_function(tolua_S,"setHeight",lua_cocos2dx_ui_RichElementImage_setHeight); tolua_function(tolua_S,"init",lua_cocos2dx_ui_RichElementImage_init); tolua_function(tolua_S,"setWidth",lua_cocos2dx_ui_RichElementImage_setWidth); + tolua_function(tolua_S,"setUrl",lua_cocos2dx_ui_RichElementImage_setUrl); tolua_function(tolua_S,"create", lua_cocos2dx_ui_RichElementImage_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ui::RichElementImage).name(); @@ -25500,6 +26177,140 @@ int lua_cocos2dx_ui_RichText_insertElement(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_RichText_setAnchorTextOutline(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setAnchorTextOutline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextOutline"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextOutline'", nullptr); + return 0; + } + cobj->setAnchorTextOutline(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + bool arg0; + cocos2d::Color3B arg1; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextOutline"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichText:setAnchorTextOutline"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextOutline'", nullptr); + return 0; + } + cobj->setAnchorTextOutline(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 3) + { + bool arg0; + cocos2d::Color3B arg1; + int arg2; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextOutline"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichText:setAnchorTextOutline"); + + ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccui.RichText:setAnchorTextOutline"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextOutline'", nullptr); + return 0; + } + cobj->setAnchorTextOutline(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setAnchorTextOutline",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setAnchorTextOutline'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getFontSize(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getFontSize'", nullptr); + return 0; + } + double ret = cobj->getFontSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getFontSize",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getFontSize'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_RichText_pushBackElement(lua_State* tolua_S) { int argc = 0; @@ -25550,7 +26361,7 @@ int lua_cocos2dx_ui_RichText_pushBackElement(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ui_RichText_setWrapMode(lua_State* tolua_S) +int lua_cocos2dx_ui_RichText_setAnchorTextBold(lua_State* tolua_S) { int argc = 0; cocos2d::ui::RichText* cobj = nullptr; @@ -25570,7 +26381,7 @@ int lua_cocos2dx_ui_RichText_setWrapMode(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setWrapMode'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setAnchorTextBold'", nullptr); return 0; } #endif @@ -25578,24 +26389,1236 @@ int lua_cocos2dx_ui_RichText_setWrapMode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::RichText::WrapMode arg0; + bool arg0; - ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichText:setWrapMode"); + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextBold"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setWrapMode'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextBold'", nullptr); return 0; } - cobj->setWrapMode(arg0); + cobj->setAnchorTextBold(arg0); lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setWrapMode",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setAnchorTextBold",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setWrapMode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setAnchorTextBold'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getAnchorFontColor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getAnchorFontColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorFontColor'", nullptr); + return 0; + } + std::string ret = cobj->getAnchorFontColor(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getAnchorFontColor",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getAnchorFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius'", nullptr); + return 0; + } + int ret = cobj->getAnchorTextShadowBlurRadius(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getAnchorTextShadowBlurRadius",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_setAnchorTextShadow(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setAnchorTextShadow'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextShadow"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextShadow'", nullptr); + return 0; + } + cobj->setAnchorTextShadow(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + bool arg0; + cocos2d::Color3B arg1; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextShadow"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichText:setAnchorTextShadow"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextShadow'", nullptr); + return 0; + } + cobj->setAnchorTextShadow(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 3) + { + bool arg0; + cocos2d::Color3B arg1; + cocos2d::Size arg2; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextShadow"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichText:setAnchorTextShadow"); + + ok &= luaval_to_size(tolua_S, 4, &arg2, "ccui.RichText:setAnchorTextShadow"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextShadow'", nullptr); + return 0; + } + cobj->setAnchorTextShadow(arg0, arg1, arg2); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 4) + { + bool arg0; + cocos2d::Color3B arg1; + cocos2d::Size arg2; + int arg3; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextShadow"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichText:setAnchorTextShadow"); + + ok &= luaval_to_size(tolua_S, 4, &arg2, "ccui.RichText:setAnchorTextShadow"); + + ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ccui.RichText:setAnchorTextShadow"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextShadow'", nullptr); + return 0; + } + cobj->setAnchorTextShadow(arg0, arg1, arg2, arg3); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setAnchorTextShadow",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setAnchorTextShadow'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_isAnchorTextItalicEnabled(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_isAnchorTextItalicEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_isAnchorTextItalicEnabled'", nullptr); + return 0; + } + bool ret = cobj->isAnchorTextItalicEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:isAnchorTextItalicEnabled",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_isAnchorTextItalicEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_setAnchorFontColor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setAnchorFontColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.RichText:setAnchorFontColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorFontColor'", nullptr); + return 0; + } + cobj->setAnchorFontColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setAnchorFontColor",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setAnchorFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_setFontFace(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setFontFace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.RichText:setFontFace"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setFontFace'", nullptr); + return 0; + } + cobj->setFontFace(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setFontFace",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setFontFace'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_setAnchorTextGlow(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setAnchorTextGlow'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextGlow"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextGlow'", nullptr); + return 0; + } + cobj->setAnchorTextGlow(arg0); + lua_settop(tolua_S, 1); + return 1; + } + if (argc == 2) + { + bool arg0; + cocos2d::Color3B arg1; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextGlow"); + + ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichText:setAnchorTextGlow"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextGlow'", nullptr); + return 0; + } + cobj->setAnchorTextGlow(arg0, arg1); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setAnchorTextGlow",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setAnchorTextGlow'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_setAnchorTextDel(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setAnchorTextDel'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextDel"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextDel'", nullptr); + return 0; + } + cobj->setAnchorTextDel(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setAnchorTextDel",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setAnchorTextDel'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B'", nullptr); + return 0; + } + cocos2d::Color3B ret = cobj->getAnchorTextOutlineColor3B(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getAnchorTextOutlineColor3B",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_stringWithColor4B(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_stringWithColor4B'", 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.RichText:stringWithColor4B"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_stringWithColor4B'", nullptr); + return 0; + } + std::string ret = cobj->stringWithColor4B(arg0); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:stringWithColor4B",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_stringWithColor4B'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_initWithXML(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_initWithXML'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string arg0; + cocos2d::ValueMap arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.RichText:initWithXML"); + + ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "ccui.RichText:initWithXML"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_initWithXML'", nullptr); + return 0; + } + bool ret = cobj->initWithXML(arg0, arg1); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + if (argc == 3) + { + std::string arg0; + cocos2d::ValueMap arg1; + std::function &)> arg2; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.RichText:initWithXML"); + + ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "ccui.RichText:initWithXML"); + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_initWithXML'", nullptr); + return 0; + } + bool ret = cobj->initWithXML(arg0, arg1, arg2); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:initWithXML",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_initWithXML'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getAnchorFontColor3B(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getAnchorFontColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorFontColor3B'", nullptr); + return 0; + } + cocos2d::Color3B ret = cobj->getAnchorFontColor3B(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getAnchorFontColor3B",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getAnchorFontColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_formatText(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_formatText'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_formatText'", nullptr); + return 0; + } + cobj->formatText(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:formatText",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_formatText'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getAnchorTextGlowColor3B(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getAnchorTextGlowColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorTextGlowColor3B'", nullptr); + return 0; + } + cocos2d::Color3B ret = cobj->getAnchorTextGlowColor3B(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getAnchorTextGlowColor3B",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getAnchorTextGlowColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_openUrl(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_openUrl'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.RichText:openUrl"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_openUrl'", nullptr); + return 0; + } + cobj->openUrl(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:openUrl",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_openUrl'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getFontFace(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getFontFace'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getFontFace'", nullptr); + return 0; + } + std::string ret = cobj->getFontFace(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getFontFace",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getFontFace'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_setFontColor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setFontColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.RichText:setFontColor"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setFontColor'", nullptr); + return 0; + } + cobj->setFontColor(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setFontColor",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_isAnchorTextGlowEnabled(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_isAnchorTextGlowEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_isAnchorTextGlowEnabled'", nullptr); + return 0; + } + bool ret = cobj->isAnchorTextGlowEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:isAnchorTextGlowEnabled",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_isAnchorTextGlowEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getDefaults(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getDefaults'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getDefaults'", nullptr); + return 0; + } + cocos2d::ValueMap ret = cobj->getDefaults(); + ccvaluemap_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getDefaults",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getDefaults'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled'", nullptr); + return 0; + } + bool ret = cobj->isAnchorTextUnderlineEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:isAnchorTextUnderlineEnabled",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getFontColor(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getFontColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getFontColor'", nullptr); + return 0; + } + std::string ret = cobj->getFontColor(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getFontColor",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getFontColor'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_isAnchorTextShadowEnabled(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_isAnchorTextShadowEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_isAnchorTextShadowEnabled'", nullptr); + return 0; + } + bool ret = cobj->isAnchorTextShadowEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:isAnchorTextShadowEnabled",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_isAnchorTextShadowEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getAnchorTextOutlineSize(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getAnchorTextOutlineSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorTextOutlineSize'", nullptr); + return 0; + } + int ret = cobj->getAnchorTextOutlineSize(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getAnchorTextOutlineSize",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getAnchorTextOutlineSize'.",&tolua_err); #endif return 0; @@ -25650,7 +27673,7 @@ int lua_cocos2dx_ui_RichText_setVerticalSpace(lua_State* tolua_S) return 0; } -int lua_cocos2dx_ui_RichText_getWrapMode(lua_State* tolua_S) +int lua_cocos2dx_ui_RichText_isAnchorTextDelEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::ui::RichText* cobj = nullptr; @@ -25670,7 +27693,7 @@ int lua_cocos2dx_ui_RichText_getWrapMode(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getWrapMode'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_isAnchorTextDelEnabled'", nullptr); return 0; } #endif @@ -25680,24 +27703,24 @@ int lua_cocos2dx_ui_RichText_getWrapMode(lua_State* tolua_S) { if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getWrapMode'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_isAnchorTextDelEnabled'", nullptr); return 0; } - int ret = (int)cobj->getWrapMode(); - tolua_pushnumber(tolua_S,(lua_Number)ret); + bool ret = cobj->isAnchorTextDelEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getWrapMode",argc, 0); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:isAnchorTextDelEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getWrapMode'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_isAnchorTextDelEnabled'.",&tolua_err); #endif return 0; } -int lua_cocos2dx_ui_RichText_formatText(lua_State* tolua_S) +int lua_cocos2dx_ui_RichText_setDefaults(lua_State* tolua_S) { int argc = 0; cocos2d::ui::RichText* cobj = nullptr; @@ -25717,54 +27740,7 @@ int lua_cocos2dx_ui_RichText_formatText(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!cobj) { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_formatText'", nullptr); - return 0; - } -#endif - - argc = lua_gettop(tolua_S)-1; - if (argc == 0) - { - if(!ok) - { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_formatText'", nullptr); - return 0; - } - cobj->formatText(); - lua_settop(tolua_S, 1); - return 1; - } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:formatText",argc, 0); - return 0; - -#if COCOS2D_DEBUG >= 1 - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_formatText'.",&tolua_err); -#endif - - return 0; -} -int lua_cocos2dx_ui_RichText_initWithXML(lua_State* tolua_S) -{ - int argc = 0; - cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; -#endif - - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); - -#if COCOS2D_DEBUG >= 1 - if (!cobj) - { - tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_initWithXML'", nullptr); + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setDefaults'", nullptr); return 0; } #endif @@ -25772,24 +27748,124 @@ int lua_cocos2dx_ui_RichText_initWithXML(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::string arg0; + cocos2d::ValueMap arg0; - ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.RichText:initWithXML"); + ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ccui.RichText:setDefaults"); if(!ok) { - tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_initWithXML'", nullptr); + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setDefaults'", nullptr); return 0; } - bool ret = cobj->initWithXML(arg0); - tolua_pushboolean(tolua_S,(bool)ret); + cobj->setDefaults(arg0); + lua_settop(tolua_S, 1); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:initWithXML",argc, 1); + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setDefaults",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_initWithXML'.",&tolua_err); + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setDefaults'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_setWrapMode(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setWrapMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::ui::RichText::WrapMode arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichText:setWrapMode"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setWrapMode'", nullptr); + return 0; + } + cobj->setWrapMode(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setWrapMode",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setWrapMode'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_setFontSize(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setFontSize'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0, "ccui.RichText:setFontSize"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setFontSize'", nullptr); + return 0; + } + cobj->setFontSize(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setFontSize",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setFontSize'.",&tolua_err); #endif return 0; @@ -25849,6 +27925,488 @@ int lua_cocos2dx_ui_RichText_removeElement(lua_State* tolua_S) return 0; } +int lua_cocos2dx_ui_RichText_setAnchorTextItalic(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setAnchorTextItalic'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextItalic"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextItalic'", nullptr); + return 0; + } + cobj->setAnchorTextItalic(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setAnchorTextItalic",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setAnchorTextItalic'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getAnchorTextShadowOffset(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getAnchorTextShadowOffset'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorTextShadowOffset'", nullptr); + return 0; + } + cocos2d::Size ret = cobj->getAnchorTextShadowOffset(); + size_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getAnchorTextShadowOffset",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getAnchorTextShadowOffset'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_isAnchorTextBoldEnabled(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_isAnchorTextBoldEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_isAnchorTextBoldEnabled'", nullptr); + return 0; + } + bool ret = cobj->isAnchorTextBoldEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:isAnchorTextBoldEnabled",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_isAnchorTextBoldEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getAnchorTextShadowColor3B(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getAnchorTextShadowColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorTextShadowColor3B'", nullptr); + return 0; + } + cocos2d::Color3B ret = cobj->getAnchorTextShadowColor3B(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getAnchorTextShadowColor3B",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getAnchorTextShadowColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_stringWithColor3B(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_stringWithColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.RichText:stringWithColor3B"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_stringWithColor3B'", nullptr); + return 0; + } + std::string ret = cobj->stringWithColor3B(arg0); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:stringWithColor3B",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_stringWithColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled'", nullptr); + return 0; + } + bool ret = cobj->isAnchorTextOutlineEnabled(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:isAnchorTextOutlineEnabled",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getFontColor3B(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getFontColor3B'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getFontColor3B'", nullptr); + return 0; + } + cocos2d::Color3B ret = cobj->getFontColor3B(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getFontColor3B",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getFontColor3B'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_getWrapMode(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_getWrapMode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getWrapMode'", nullptr); + return 0; + } + int ret = (int)cobj->getWrapMode(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:getWrapMode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_getWrapMode'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_setAnchorTextUnderline(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_setAnchorTextUnderline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextUnderline"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_setAnchorTextUnderline'", nullptr); + return 0; + } + cobj->setAnchorTextUnderline(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:setAnchorTextUnderline",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_setAnchorTextUnderline'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_ui_RichText_color3BWithString(lua_State* tolua_S) +{ + int argc = 0; + cocos2d::ui::RichText* 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.RichText",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ui_RichText_color3BWithString'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.RichText:color3BWithString"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_color3BWithString'", nullptr); + return 0; + } + cocos2d::Color3B ret = cobj->color3BWithString(arg0); + color3b_to_luaval(tolua_S, ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RichText:color3BWithString",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_RichText_color3BWithString'.",&tolua_err); +#endif + + return 0; +} int lua_cocos2dx_ui_RichText_create(lua_State* tolua_S) { int argc = 0; @@ -25898,20 +28456,43 @@ int lua_cocos2dx_ui_RichText_createWithXML(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; - if (argc == 1) + if (argc == 2) { std::string arg0; + cocos2d::ValueMap arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.RichText:createWithXML"); + ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "ccui.RichText:createWithXML"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_createWithXML'", nullptr); return 0; } - cocos2d::ui::RichText* ret = cocos2d::ui::RichText::createWithXML(arg0); + cocos2d::ui::RichText* ret = cocos2d::ui::RichText::createWithXML(arg0, arg1); object_to_luaval(tolua_S, "ccui.RichText",(cocos2d::ui::RichText*)ret); return 1; } - luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RichText:createWithXML",argc, 1); + if (argc == 3) + { + std::string arg0; + cocos2d::ValueMap arg1; + std::function &)> arg2; + ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.RichText:createWithXML"); + ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "ccui.RichText:createWithXML"); + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_createWithXML'", nullptr); + return 0; + } + cocos2d::ui::RichText* ret = cocos2d::ui::RichText::createWithXML(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.RichText",(cocos2d::ui::RichText*)ret); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RichText:createWithXML",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: @@ -25970,13 +28551,49 @@ int lua_register_cocos2dx_ui_RichText(lua_State* tolua_S) tolua_beginmodule(tolua_S,"RichText"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_RichText_constructor); tolua_function(tolua_S,"insertElement",lua_cocos2dx_ui_RichText_insertElement); + tolua_function(tolua_S,"setAnchorTextOutline",lua_cocos2dx_ui_RichText_setAnchorTextOutline); + tolua_function(tolua_S,"getFontSize",lua_cocos2dx_ui_RichText_getFontSize); tolua_function(tolua_S,"pushBackElement",lua_cocos2dx_ui_RichText_pushBackElement); - tolua_function(tolua_S,"setWrapMode",lua_cocos2dx_ui_RichText_setWrapMode); - tolua_function(tolua_S,"setVerticalSpace",lua_cocos2dx_ui_RichText_setVerticalSpace); - tolua_function(tolua_S,"getWrapMode",lua_cocos2dx_ui_RichText_getWrapMode); - tolua_function(tolua_S,"formatText",lua_cocos2dx_ui_RichText_formatText); + tolua_function(tolua_S,"setAnchorTextBold",lua_cocos2dx_ui_RichText_setAnchorTextBold); + tolua_function(tolua_S,"getAnchorFontColor",lua_cocos2dx_ui_RichText_getAnchorFontColor); + tolua_function(tolua_S,"getAnchorTextShadowBlurRadius",lua_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius); + tolua_function(tolua_S,"setAnchorTextShadow",lua_cocos2dx_ui_RichText_setAnchorTextShadow); + tolua_function(tolua_S,"isAnchorTextItalicEnabled",lua_cocos2dx_ui_RichText_isAnchorTextItalicEnabled); + tolua_function(tolua_S,"setAnchorFontColor",lua_cocos2dx_ui_RichText_setAnchorFontColor); + tolua_function(tolua_S,"setFontFace",lua_cocos2dx_ui_RichText_setFontFace); + tolua_function(tolua_S,"setAnchorTextGlow",lua_cocos2dx_ui_RichText_setAnchorTextGlow); + tolua_function(tolua_S,"setAnchorTextDel",lua_cocos2dx_ui_RichText_setAnchorTextDel); + tolua_function(tolua_S,"getAnchorTextOutlineColor3B",lua_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B); + tolua_function(tolua_S,"stringWithColor4B",lua_cocos2dx_ui_RichText_stringWithColor4B); tolua_function(tolua_S,"initWithXML",lua_cocos2dx_ui_RichText_initWithXML); + tolua_function(tolua_S,"getAnchorFontColor3B",lua_cocos2dx_ui_RichText_getAnchorFontColor3B); + tolua_function(tolua_S,"formatText",lua_cocos2dx_ui_RichText_formatText); + tolua_function(tolua_S,"getAnchorTextGlowColor3B",lua_cocos2dx_ui_RichText_getAnchorTextGlowColor3B); + tolua_function(tolua_S,"openUrl",lua_cocos2dx_ui_RichText_openUrl); + tolua_function(tolua_S,"getFontFace",lua_cocos2dx_ui_RichText_getFontFace); + tolua_function(tolua_S,"setFontColor",lua_cocos2dx_ui_RichText_setFontColor); + tolua_function(tolua_S,"isAnchorTextGlowEnabled",lua_cocos2dx_ui_RichText_isAnchorTextGlowEnabled); + tolua_function(tolua_S,"getDefaults",lua_cocos2dx_ui_RichText_getDefaults); + tolua_function(tolua_S,"isAnchorTextUnderlineEnabled",lua_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled); + tolua_function(tolua_S,"getFontColor",lua_cocos2dx_ui_RichText_getFontColor); + tolua_function(tolua_S,"isAnchorTextShadowEnabled",lua_cocos2dx_ui_RichText_isAnchorTextShadowEnabled); + tolua_function(tolua_S,"getAnchorTextOutlineSize",lua_cocos2dx_ui_RichText_getAnchorTextOutlineSize); + tolua_function(tolua_S,"setVerticalSpace",lua_cocos2dx_ui_RichText_setVerticalSpace); + tolua_function(tolua_S,"isAnchorTextDelEnabled",lua_cocos2dx_ui_RichText_isAnchorTextDelEnabled); + tolua_function(tolua_S,"setDefaults",lua_cocos2dx_ui_RichText_setDefaults); + tolua_function(tolua_S,"setWrapMode",lua_cocos2dx_ui_RichText_setWrapMode); + tolua_function(tolua_S,"setFontSize",lua_cocos2dx_ui_RichText_setFontSize); tolua_function(tolua_S,"removeElement",lua_cocos2dx_ui_RichText_removeElement); + tolua_function(tolua_S,"setAnchorTextItalic",lua_cocos2dx_ui_RichText_setAnchorTextItalic); + tolua_function(tolua_S,"getAnchorTextShadowOffset",lua_cocos2dx_ui_RichText_getAnchorTextShadowOffset); + tolua_function(tolua_S,"isAnchorTextBoldEnabled",lua_cocos2dx_ui_RichText_isAnchorTextBoldEnabled); + tolua_function(tolua_S,"getAnchorTextShadowColor3B",lua_cocos2dx_ui_RichText_getAnchorTextShadowColor3B); + tolua_function(tolua_S,"stringWithColor3B",lua_cocos2dx_ui_RichText_stringWithColor3B); + tolua_function(tolua_S,"isAnchorTextOutlineEnabled",lua_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled); + tolua_function(tolua_S,"getFontColor3B",lua_cocos2dx_ui_RichText_getFontColor3B); + tolua_function(tolua_S,"getWrapMode",lua_cocos2dx_ui_RichText_getWrapMode); + tolua_function(tolua_S,"setAnchorTextUnderline",lua_cocos2dx_ui_RichText_setAnchorTextUnderline); + tolua_function(tolua_S,"color3BWithString",lua_cocos2dx_ui_RichText_color3BWithString); tolua_function(tolua_S,"create", lua_cocos2dx_ui_RichText_create); tolua_function(tolua_S,"createWithXML", lua_cocos2dx_ui_RichText_createWithXML); tolua_endmodule(tolua_S); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp index 1ca89fef6b..2b02790790 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.hpp @@ -692,6 +692,45 @@ int register_all_cocos2dx_ui(lua_State* tolua_S); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +