Merge pull request #11694 from CocosRobot/update_lua_bindings_1430804693

[AUTO]: updating luabinding & jsbinding automatically
This commit is contained in:
minggo 2015-05-05 17:17:55 +08:00
commit 99911b6f3f
7 changed files with 110 additions and 74 deletions

View File

@ -342,7 +342,7 @@ int
/** /**
* @method getRootCount * @method getRootCount
* @return {int} * @return {long}
*/ */
getRootCount : function ( getRootCount : function (
) )
@ -364,7 +364,7 @@ bone3d
/** /**
* @method getBoneCount * @method getBoneCount
* @return {int} * @return {long}
*/ */
getBoneCount : function ( getBoneCount : function (
) )
@ -512,7 +512,7 @@ materialdatas
/** /**
* @method getMeshCount * @method getMeshCount
* @return {int} * @return {long}
*/ */
getMeshCount : function ( getMeshCount : function (
) )
@ -927,7 +927,7 @@ isVisible : function (
/** /**
* @method getIndexCount * @method getIndexCount
* @return {int} * @return {long}
*/ */
getIndexCount : function ( getIndexCount : function (
) )
@ -955,7 +955,7 @@ meshindexdata
/** /**
* @method getMeshVertexAttribCount * @method getMeshVertexAttribCount
* @return {int} * @return {long}
*/ */
getMeshVertexAttribCount : function ( getMeshVertexAttribCount : function (
) )

View File

@ -1444,7 +1444,7 @@ getAnchorPoint : function (
/** /**
* @method getNumberOfRunningActions * @method getNumberOfRunningActions
* @return {int} * @return {long}
*/ */
getNumberOfRunningActions : function ( getNumberOfRunningActions : function (
) )
@ -1472,7 +1472,7 @@ isVisible : function (
/** /**
* @method getChildrenCount * @method getChildrenCount
* @return {int} * @return {long}
*/ */
getChildrenCount : function ( getChildrenCount : function (
) )
@ -5751,6 +5751,18 @@ str
return ; return ;
}, },
/**
* @method getSuitableFOpen
* @param {String} arg0
* @return {String}
*/
getSuitableFOpen : function (
str
)
{
return ;
},
/** /**
* @method setWritablePath * @method setWritablePath
* @param {String} arg0 * @param {String} arg0
@ -6756,7 +6768,7 @@ node
/** /**
* @method getNumberOfRunningActionsInTarget * @method getNumberOfRunningActionsInTarget
* @param {cc.Node} arg0 * @param {cc.Node} arg0
* @return {int} * @return {long}
*/ */
getNumberOfRunningActionsInTarget : function ( getNumberOfRunningActionsInTarget : function (
node node
@ -10209,7 +10221,7 @@ mat4
/** /**
* @method getUniformCount * @method getUniformCount
* @return {int} * @return {long}
*/ */
getUniformCount : function ( getUniformCount : function (
) )
@ -10263,7 +10275,7 @@ int
/** /**
* @method getVertexAttribCount * @method getVertexAttribCount
* @return {int} * @return {long}
*/ */
getVertexAttribCount : function ( getVertexAttribCount : function (
) )
@ -10456,7 +10468,7 @@ getBlendFunc : function (
/** /**
* @method getQuadsToDraw * @method getQuadsToDraw
* @return {int} * @return {long}
*/ */
getQuadsToDraw : function ( getQuadsToDraw : function (
) )
@ -10494,10 +10506,10 @@ int
/** /**
* @method setQuadsToDraw * @method setQuadsToDraw
* @param {int} arg0 * @param {long} arg0
*/ */
setQuadsToDraw : function ( setQuadsToDraw : function (
int long
) )
{ {
}, },
@ -11333,12 +11345,12 @@ bool
/** /**
* @method initWithTexture * @method initWithTexture
* @param {cc.Texture2D} arg0 * @param {cc.Texture2D} arg0
* @param {int} arg1 * @param {long} arg1
* @return {bool} * @return {bool}
*/ */
initWithTexture : function ( initWithTexture : function (
texture2d, texture2d,
int long
) )
{ {
return false; return false;
@ -11357,7 +11369,7 @@ getBlendFunc : function (
/** /**
* @method lowestAtlasIndexInChild * @method lowestAtlasIndexInChild
* @param {cc.Sprite} arg0 * @param {cc.Sprite} arg0
* @return {int} * @return {long}
*/ */
lowestAtlasIndexInChild : function ( lowestAtlasIndexInChild : function (
sprite sprite
@ -11370,7 +11382,7 @@ sprite
* @method atlasIndexForChild * @method atlasIndexForChild
* @param {cc.Sprite} arg0 * @param {cc.Sprite} arg0
* @param {int} arg1 * @param {int} arg1
* @return {int} * @return {long}
*/ */
atlasIndexForChild : function ( atlasIndexForChild : function (
sprite, sprite,
@ -11393,12 +11405,12 @@ textureatlas
/** /**
* @method initWithFile * @method initWithFile
* @param {String} arg0 * @param {String} arg0
* @param {int} arg1 * @param {long} arg1
* @return {bool} * @return {bool}
*/ */
initWithFile : function ( initWithFile : function (
str, str,
int long
) )
{ {
return false; return false;
@ -11435,11 +11447,11 @@ getTextureAtlas : function (
/** /**
* @method insertQuadFromSprite * @method insertQuadFromSprite
* @param {cc.Sprite} arg0 * @param {cc.Sprite} arg0
* @param {int} arg1 * @param {long} arg1
*/ */
insertQuadFromSprite : function ( insertQuadFromSprite : function (
sprite, sprite,
int long
) )
{ {
}, },
@ -11457,12 +11469,12 @@ texture2d
/** /**
* @method rebuildIndexInOrder * @method rebuildIndexInOrder
* @param {cc.Sprite} arg0 * @param {cc.Sprite} arg0
* @param {int} arg1 * @param {long} arg1
* @return {int} * @return {long}
*/ */
rebuildIndexInOrder : function ( rebuildIndexInOrder : function (
sprite, sprite,
int long
) )
{ {
return 0; return 0;
@ -11471,7 +11483,7 @@ int
/** /**
* @method highestAtlasIndexInChild * @method highestAtlasIndexInChild
* @param {cc.Sprite} arg0 * @param {cc.Sprite} arg0
* @return {int} * @return {long}
*/ */
highestAtlasIndexInChild : function ( highestAtlasIndexInChild : function (
sprite sprite
@ -11482,11 +11494,11 @@ sprite
/** /**
* @method removeChildAtIndex * @method removeChildAtIndex
* @param {int} arg0 * @param {long} arg0
* @param {bool} arg1 * @param {bool} arg1
*/ */
removeChildAtIndex : function ( removeChildAtIndex : function (
int, long,
bool bool
) )
{ {
@ -11515,12 +11527,12 @@ blendfunc
/** /**
* @method create * @method create
* @param {String} arg0 * @param {String} arg0
* @param {int} arg1 * @param {long} arg1
* @return {cc.SpriteBatchNode} * @return {cc.SpriteBatchNode}
*/ */
create : function ( create : function (
str, str,
int long
) )
{ {
return cc.SpriteBatchNode; return cc.SpriteBatchNode;
@ -11529,12 +11541,12 @@ int
/** /**
* @method createWithTexture * @method createWithTexture
* @param {cc.Texture2D} arg0 * @param {cc.Texture2D} arg0
* @param {int} arg1 * @param {long} arg1
* @return {cc.SpriteBatchNode} * @return {cc.SpriteBatchNode}
*/ */
createWithTexture : function ( createWithTexture : function (
texture2d, texture2d,
int long
) )
{ {
return cc.SpriteBatchNode; return cc.SpriteBatchNode;
@ -15219,7 +15231,7 @@ spriteframe
/** /**
* @method getAtlasIndex * @method getAtlasIndex
* @return {int} * @return {long}
*/ */
getAtlasIndex : function ( getAtlasIndex : function (
) )
@ -15250,11 +15262,11 @@ getBlendFunc : function (
/** /**
* @method setDisplayFrameWithAnimationName * @method setDisplayFrameWithAnimationName
* @param {String} arg0 * @param {String} arg0
* @param {int} arg1 * @param {long} arg1
*/ */
setDisplayFrameWithAnimationName : function ( setDisplayFrameWithAnimationName : function (
str, str,
int long
) )
{ {
}, },
@ -15291,10 +15303,10 @@ isDirty : function (
/** /**
* @method setAtlasIndex * @method setAtlasIndex
* @param {int} arg0 * @param {long} arg0
*/ */
setAtlasIndex : function ( setAtlasIndex : function (
int long
) )
{ {
}, },
@ -15487,7 +15499,7 @@ hasPremultipliedAlpha : function (
/** /**
* @method getDataLen * @method getDataLen
* @return {int} * @return {long}
*/ */
getDataLen : function ( getDataLen : function (
) )
@ -15624,7 +15636,7 @@ getMipmaps : function (
/** /**
* @method initWithRawData * @method initWithRawData
* @param {unsigned char} arg0 * @param {unsigned char} arg0
* @param {int} arg1 * @param {long} arg1
* @param {int} arg2 * @param {int} arg2
* @param {int} arg3 * @param {int} arg3
* @param {int} arg4 * @param {int} arg4
@ -15633,7 +15645,7 @@ getMipmaps : function (
*/ */
initWithRawData : function ( initWithRawData : function (
char, char,
int, long,
int, int,
int, int,
int, int,

View File

@ -2144,7 +2144,7 @@ reset : function (
/** /**
* @method getIdx * @method getIdx
* @return {int} * @return {long}
*/ */
getIdx : function ( getIdx : function (
) )
@ -2154,10 +2154,10 @@ getIdx : function (
/** /**
* @method setIdx * @method setIdx
* @param {int} arg0 * @param {long} arg0
*/ */
setIdx : function ( setIdx : function (
int long
) )
{ {
}, },
@ -2190,10 +2190,10 @@ cc.TableView = {
/** /**
* @method updateCellAtIndex * @method updateCellAtIndex
* @param {int} arg0 * @param {long} arg0
*/ */
updateCellAtIndex : function ( updateCellAtIndex : function (
int long
) )
{ {
}, },
@ -2238,10 +2238,10 @@ getVerticalFillOrder : function (
/** /**
* @method removeCellAtIndex * @method removeCellAtIndex
* @param {int} arg0 * @param {long} arg0
*/ */
removeCellAtIndex : function ( removeCellAtIndex : function (
int long
) )
{ {
}, },
@ -2280,21 +2280,21 @@ reloadData : function (
/** /**
* @method insertCellAtIndex * @method insertCellAtIndex
* @param {int} arg0 * @param {long} arg0
*/ */
insertCellAtIndex : function ( insertCellAtIndex : function (
int long
) )
{ {
}, },
/** /**
* @method cellAtIndex * @method cellAtIndex
* @param {int} arg0 * @param {long} arg0
* @return {cc.TableViewCell} * @return {cc.TableViewCell}
*/ */
cellAtIndex : function ( cellAtIndex : function (
int long
) )
{ {
return cc.TableViewCell; return cc.TableViewCell;

View File

@ -405,7 +405,7 @@ str
/** /**
* @method getMovementCount * @method getMovementCount
* @return {int} * @return {long}
*/ */
getMovementCount : function ( getMovementCount : function (
) )
@ -1776,7 +1776,7 @@ bool
/** /**
* @method getMovementCount * @method getMovementCount
* @return {int} * @return {long}
*/ */
getMovementCount : function ( getMovementCount : function (
) )

View File

@ -2090,7 +2090,7 @@ size
/** /**
* @method getStringLength * @method getStringLength
* @return {int} * @return {long}
*/ */
getStringLength : function ( getStringLength : function (
) )
@ -2244,7 +2244,7 @@ ccui.TextAtlas = {
/** /**
* @method getStringLength * @method getStringLength
* @return {int} * @return {long}
*/ */
getStringLength : function ( getStringLength : function (
) )
@ -2839,7 +2839,7 @@ ccui.ListView = {
/** /**
* @method getIndex * @method getIndex
* @param {ccui.Widget} arg0 * @param {ccui.Widget} arg0
* @return {int} * @return {long}
*/ */
getIndex : function ( getIndex : function (
widget widget
@ -2888,17 +2888,17 @@ getItems : function (
/** /**
* @method removeItem * @method removeItem
* @param {int} arg0 * @param {long} arg0
*/ */
removeItem : function ( removeItem : function (
int long
) )
{ {
}, },
/** /**
* @method getCurSelectedIndex * @method getCurSelectedIndex
* @return {int} * @return {long}
*/ */
getCurSelectedIndex : function ( getCurSelectedIndex : function (
) )
@ -2908,10 +2908,10 @@ getCurSelectedIndex : function (
/** /**
* @method insertDefaultItem * @method insertDefaultItem
* @param {int} arg0 * @param {long} arg0
*/ */
insertDefaultItem : function ( insertDefaultItem : function (
int long
) )
{ {
}, },
@ -2962,11 +2962,11 @@ getItemsMargin : function (
/** /**
* @method getItem * @method getItem
* @param {int} arg0 * @param {long} arg0
* @return {ccui.Widget} * @return {ccui.Widget}
*/ */
getItem : function ( getItem : function (
int long
) )
{ {
return ccui.Widget; return ccui.Widget;
@ -3001,11 +3001,11 @@ pushBackDefaultItem : function (
/** /**
* @method insertCustomItem * @method insertCustomItem
* @param {ccui.Widget} arg0 * @param {ccui.Widget} arg0
* @param {int} arg1 * @param {long} arg1
*/ */
insertCustomItem : function ( insertCustomItem : function (
widget, widget,
int long
) )
{ {
}, },
@ -3988,7 +3988,7 @@ str
/** /**
* @method getStringLength * @method getStringLength
* @return {int} * @return {long}
*/ */
getStringLength : function ( getStringLength : function (
) )
@ -4068,7 +4068,7 @@ getCustomScrollThreshold : function (
/** /**
* @method getCurPageIndex * @method getCurPageIndex
* @return {int} * @return {long}
*/ */
getCurPageIndex : function ( getCurPageIndex : function (
) )
@ -4079,12 +4079,12 @@ getCurPageIndex : function (
/** /**
* @method addWidgetToPage * @method addWidgetToPage
* @param {ccui.Widget} arg0 * @param {ccui.Widget} arg0
* @param {int} arg1 * @param {long} arg1
* @param {bool} arg2 * @param {bool} arg2
*/ */
addWidgetToPage : function ( addWidgetToPage : function (
widget, widget,
int, long,
bool bool
) )
{ {
@ -4102,11 +4102,11 @@ isUsingCustomScrollThreshold : function (
/** /**
* @method getPage * @method getPage
* @param {int} arg0 * @param {long} arg0
* @return {ccui.Layout} * @return {ccui.Layout}
*/ */
getPage : function ( getPage : function (
int long
) )
{ {
return ccui.Layout; return ccui.Layout;
@ -4156,20 +4156,20 @@ int
/** /**
* @method scrollToPage * @method scrollToPage
* @param {int} arg0 * @param {long} arg0
*/ */
scrollToPage : function ( scrollToPage : function (
int long
) )
{ {
}, },
/** /**
* @method removePageAtIndex * @method removePageAtIndex
* @param {int} arg0 * @param {long} arg0
*/ */
removePageAtIndex : function ( removePageAtIndex : function (
int long
) )
{ {
}, },

View File

@ -16014,6 +16014,28 @@ bool js_cocos2dx_FileUtils_fullPathFromRelativeFile(JSContext *cx, uint32_t argc
JS_ReportError(cx, "js_cocos2dx_FileUtils_fullPathFromRelativeFile : wrong number of arguments: %d, was expecting %d", argc, 2); JS_ReportError(cx, "js_cocos2dx_FileUtils_fullPathFromRelativeFile : wrong number of arguments: %d, was expecting %d", argc, 2);
return false; return false;
} }
bool js_cocos2dx_FileUtils_getSuitableFOpen(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::FileUtils* cobj = (cocos2d::FileUtils *)(proxy ? proxy->ptr : NULL);
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_FileUtils_getSuitableFOpen : 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_FileUtils_getSuitableFOpen : Error processing arguments");
std::string ret = cobj->getSuitableFOpen(arg0);
jsval jsret = JSVAL_NULL;
jsret = std_string_to_jsval(cx, ret);
args.rval().set(jsret);
return true;
}
JS_ReportError(cx, "js_cocos2dx_FileUtils_getSuitableFOpen : wrong number of arguments: %d, was expecting %d", argc, 1);
return false;
}
bool js_cocos2dx_FileUtils_setWritablePath(JSContext *cx, uint32_t argc, jsval *vp) bool js_cocos2dx_FileUtils_setWritablePath(JSContext *cx, uint32_t argc, jsval *vp)
{ {
JS::CallArgs args = JS::CallArgsFromVp(argc, vp); JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
@ -16244,6 +16266,7 @@ void js_register_cocos2dx_FileUtils(JSContext *cx, JS::HandleObject global) {
JS_FN("isFileExist", js_cocos2dx_FileUtils_isFileExist, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("isFileExist", js_cocos2dx_FileUtils_isFileExist, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
JS_FN("purgeCachedEntries", js_cocos2dx_FileUtils_purgeCachedEntries, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("purgeCachedEntries", js_cocos2dx_FileUtils_purgeCachedEntries, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
JS_FN("fullPathFromRelativeFile", js_cocos2dx_FileUtils_fullPathFromRelativeFile, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("fullPathFromRelativeFile", js_cocos2dx_FileUtils_fullPathFromRelativeFile, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
JS_FN("getSuitableFOpen", js_cocos2dx_FileUtils_getSuitableFOpen, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
JS_FN("setWritablePath", js_cocos2dx_FileUtils_setWritablePath, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("setWritablePath", js_cocos2dx_FileUtils_setWritablePath, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
JS_FN("setPopupNotify", js_cocos2dx_FileUtils_setPopupNotify, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("setPopupNotify", js_cocos2dx_FileUtils_setPopupNotify, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
JS_FN("isDirectoryExist", js_cocos2dx_FileUtils_isDirectoryExist, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE), JS_FN("isDirectoryExist", js_cocos2dx_FileUtils_isDirectoryExist, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),

View File

@ -877,6 +877,7 @@ bool js_cocos2dx_FileUtils_addSearchPath(JSContext *cx, uint32_t argc, jsval *vp
bool js_cocos2dx_FileUtils_isFileExist(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_FileUtils_isFileExist(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_FileUtils_purgeCachedEntries(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_FileUtils_purgeCachedEntries(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_FileUtils_fullPathFromRelativeFile(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_FileUtils_fullPathFromRelativeFile(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_FileUtils_getSuitableFOpen(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_FileUtils_setWritablePath(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_FileUtils_setWritablePath(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_FileUtils_setPopupNotify(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_FileUtils_setPopupNotify(JSContext *cx, uint32_t argc, jsval *vp);
bool js_cocos2dx_FileUtils_isDirectoryExist(JSContext *cx, uint32_t argc, jsval *vp); bool js_cocos2dx_FileUtils_isDirectoryExist(JSContext *cx, uint32_t argc, jsval *vp);