c1_unity/Assets/XLua/Gen/TMPro_TextContainerWrap.cs
2023-04-03 11:04:31 +08:00

459 lines
18 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 TMProTextContainerWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(TMPro.TextContainer);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 15, 9);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasChanged", _g_get_hasChanged);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "pivot", _g_get_pivot);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchorPosition", _g_get_anchorPosition);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "rect", _g_get_rect);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDefaultWidth", _g_get_isDefaultWidth);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDefaultHeight", _g_get_isDefaultHeight);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isAutoFitting", _g_get_isAutoFitting);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "corners", _g_get_corners);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldCorners", _g_get_worldCorners);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "margins", _g_get_margins);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "rectTransform", _g_get_rectTransform);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "textMeshPro", _g_get_textMeshPro);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "hasChanged", _s_set_hasChanged);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "pivot", _s_set_pivot);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchorPosition", _s_set_anchorPosition);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "rect", _s_set_rect);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "isAutoFitting", _s_set_isAutoFitting);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "margins", _s_set_margins);
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 TMPro.TextContainer();
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 TMPro.TextContainer constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_hasChanged(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasChanged);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_pivot(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
translator.PushUnityEngineVector2(L, gen_to_be_invoked.pivot);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_anchorPosition(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.anchorPosition);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_rect(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.rect);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_size(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
translator.PushUnityEngineVector2(L, gen_to_be_invoked.size);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_width(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.width);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_height(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.height);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_isDefaultWidth(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDefaultWidth);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_isDefaultHeight(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDefaultHeight);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_isAutoFitting(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isAutoFitting);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_corners(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.corners);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_worldCorners(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.worldCorners);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_margins(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
translator.PushUnityEngineVector4(L, gen_to_be_invoked.margins);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_rectTransform(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.rectTransform);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_textMeshPro(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.textMeshPro);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_hasChanged(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.hasChanged = LuaAPI.lua_toboolean(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_pivot(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.pivot = gen_value;
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_anchorPosition(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
TMPro.TextContainerAnchors gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.anchorPosition = gen_value;
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_rect(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
UnityEngine.Rect gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.rect = gen_value;
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_size(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.size = gen_value;
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_width(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.width = (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_height(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.height = (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_isAutoFitting(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.isAutoFitting = LuaAPI.lua_toboolean(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_margins(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
TMPro.TextContainer gen_to_be_invoked = (TMPro.TextContainer)translator.FastGetCSObj(L, 1);
UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.margins = gen_value;
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}