static int GetIndexInShownItemList(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1); SuperScrollView.LoopListViewItem2 arg0 = (SuperScrollView.LoopListViewItem2)ToLua.CheckObject <SuperScrollView.LoopListViewItem2>(L, 2); int o = obj.GetIndexInShownItemList(arg0); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }