|
|
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
-
- public class TMPro_TextMeshProUGUIWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(TMPro.TextMeshProUGUI), typeof(TMPro.TMP_Text));
- L.RegFunction("CalculateLayoutInputHorizontal", CalculateLayoutInputHorizontal);
- L.RegFunction("CalculateLayoutInputVertical", CalculateLayoutInputVertical);
- L.RegFunction("SetVerticesDirty", SetVerticesDirty);
- L.RegFunction("SetLayoutDirty", SetLayoutDirty);
- L.RegFunction("SetMaterialDirty", SetMaterialDirty);
- L.RegFunction("SetAllDirty", SetAllDirty);
- L.RegFunction("Rebuild", Rebuild);
- L.RegFunction("GetModifiedMaterial", GetModifiedMaterial);
- L.RegFunction("RecalculateClipping", RecalculateClipping);
- L.RegFunction("RecalculateMasking", RecalculateMasking);
- L.RegFunction("Cull", Cull);
- L.RegFunction("UpdateMeshPadding", UpdateMeshPadding);
- L.RegFunction("ForceMeshUpdate", ForceMeshUpdate);
- L.RegFunction("GetTextInfo", GetTextInfo);
- L.RegFunction("ClearMesh", ClearMesh);
- L.RegFunction("UpdateGeometry", UpdateGeometry);
- L.RegFunction("UpdateVertexData", UpdateVertexData);
- L.RegFunction("UpdateFontAsset", UpdateFontAsset);
- L.RegFunction("ComputeMarginSize", ComputeMarginSize);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("materialForRendering", get_materialForRendering, null);
- L.RegVar("autoSizeTextContainer", get_autoSizeTextContainer, set_autoSizeTextContainer);
- L.RegVar("mesh", get_mesh, null);
- L.RegVar("canvasRenderer", get_canvasRenderer, null);
- L.RegVar("maskOffset", get_maskOffset, set_maskOffset);
- L.EndClass();
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CalculateLayoutInputHorizontal(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- obj.CalculateLayoutInputHorizontal();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CalculateLayoutInputVertical(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- obj.CalculateLayoutInputVertical();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetVerticesDirty(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- obj.SetVerticesDirty();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetLayoutDirty(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- obj.SetLayoutDirty();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetMaterialDirty(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- obj.SetMaterialDirty();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetAllDirty(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- obj.SetAllDirty();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Rebuild(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- UnityEngine.UI.CanvasUpdate arg0 = (UnityEngine.UI.CanvasUpdate)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.CanvasUpdate));
- obj.Rebuild(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetModifiedMaterial(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Material));
- UnityEngine.Material o = obj.GetModifiedMaterial(arg0);
- ToLua.Push(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int RecalculateClipping(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- obj.RecalculateClipping();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int RecalculateMasking(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- obj.RecalculateMasking();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Cull(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- UnityEngine.Rect arg0 = (UnityEngine.Rect)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rect));
- bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
- obj.Cull(arg0, arg1);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UpdateMeshPadding(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- obj.UpdateMeshPadding();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ForceMeshUpdate(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
-
- if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(TMPro.TextMeshProUGUI)))
- {
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.ToObject(L, 1);
- obj.ForceMeshUpdate();
- return 0;
- }
- else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(TMPro.TextMeshProUGUI), typeof(bool)))
- {
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.ToObject(L, 1);
- bool arg0 = LuaDLL.lua_toboolean(L, 2);
- obj.ForceMeshUpdate(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: TMPro.TextMeshProUGUI.ForceMeshUpdate");
- }
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetTextInfo(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- string arg0 = ToLua.CheckString(L, 2);
- TMPro.TMP_TextInfo o = obj.GetTextInfo(arg0);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ClearMesh(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
-
- if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(TMPro.TextMeshProUGUI)))
- {
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.ToObject(L, 1);
- obj.ClearMesh();
- return 0;
- }
- else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(TMPro.TextMeshProUGUI), typeof(bool)))
- {
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.ToObject(L, 1);
- bool arg0 = LuaDLL.lua_toboolean(L, 2);
- obj.ClearMesh(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: TMPro.TextMeshProUGUI.ClearMesh");
- }
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UpdateGeometry(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Mesh));
- int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
- obj.UpdateGeometry(arg0, arg1);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UpdateVertexData(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
-
- if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(TMPro.TextMeshProUGUI)))
- {
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.ToObject(L, 1);
- obj.UpdateVertexData();
- return 0;
- }
- else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(TMPro.TextMeshProUGUI), typeof(TMPro.TMP_VertexDataUpdateFlags)))
- {
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.ToObject(L, 1);
- TMPro.TMP_VertexDataUpdateFlags arg0 = (TMPro.TMP_VertexDataUpdateFlags)ToLua.ToObject(L, 2);
- obj.UpdateVertexData(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: TMPro.TextMeshProUGUI.UpdateVertexData");
- }
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UpdateFontAsset(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- obj.UpdateFontAsset();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ComputeMarginSize(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)ToLua.CheckObject(L, 1, typeof(TMPro.TextMeshProUGUI));
- obj.ComputeMarginSize();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_materialForRendering(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)o;
- UnityEngine.Material ret = obj.materialForRendering;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index materialForRendering on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_autoSizeTextContainer(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)o;
- bool ret = obj.autoSizeTextContainer;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index autoSizeTextContainer on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_mesh(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)o;
- UnityEngine.Mesh ret = obj.mesh;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mesh on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_canvasRenderer(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)o;
- UnityEngine.CanvasRenderer ret = obj.canvasRenderer;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index canvasRenderer on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_maskOffset(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)o;
- UnityEngine.Vector4 ret = obj.maskOffset;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index maskOffset on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_autoSizeTextContainer(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.autoSizeTextContainer = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index autoSizeTextContainer on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_maskOffset(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshProUGUI obj = (TMPro.TextMeshProUGUI)o;
- UnityEngine.Vector4 arg0 = ToLua.ToVector4(L, 2);
- obj.maskOffset = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index maskOffset on a nil value" : e.Message);
- }
- }
- }
-
|