c1_unity/Assets/XLua/Gen/BF_BFHorizontalOrVerticalLayoutWrap.cs
2025-11-03 15:00:43 +08:00

261 lines
8.2 KiB
C#

#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class BFBFHorizontalOrVerticalLayoutWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(BF.BFHorizontalOrVerticalLayout);
Utils.BeginObjectRegister(type, L, translator, 0, 4, 2, 2);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshLayout", _m_RefreshLayout);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVerticalSize", _m_GetVerticalSize);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHorizontalSize", _m_GetHorizontalSize);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Spaceing", _g_get_Spaceing);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "VerticalOrHorizontal", _g_get_VerticalOrHorizontal);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Spaceing", _s_set_Spaceing);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "VerticalOrHorizontal", _s_set_VerticalOrHorizontal);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new BF.BFHorizontalOrVerticalLayout();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFHorizontalOrVerticalLayout constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Update(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.Update( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_RefreshLayout(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.RefreshLayout( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetVerticalSize(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetVerticalSize( );
LuaAPI.lua_pushnumber(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetHorizontalSize(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetHorizontalSize( );
LuaAPI.lua_pushnumber(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_Spaceing(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Spaceing);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_VerticalOrHorizontal(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.VerticalOrHorizontal);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_Spaceing(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.Spaceing = (float)LuaAPI.lua_tonumber(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_VerticalOrHorizontal(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.VerticalOrHorizontal = LuaAPI.lua_toboolean(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}