| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class TMPro_TextMeshProWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(TMPro.TextMeshPro), typeof(TMPro.TMP_Text), "TextMeshPro");
- L.RegFunction("SetMask", SetMask);
- L.RegFunction("SetVerticesDirty", SetVerticesDirty);
- L.RegFunction("SetLayoutDirty", SetLayoutDirty);
- L.RegFunction("SetMaterialDirty", SetMaterialDirty);
- L.RegFunction("SetAllDirty", SetAllDirty);
- L.RegFunction("Rebuild", Rebuild);
- 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("CalculateLayoutInputHorizontal", CalculateLayoutInputHorizontal);
- L.RegFunction("CalculateLayoutInputVertical", CalculateLayoutInputVertical);
- L.RegFunction("ComputeMarginSize", ComputeMarginSize);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("sortingLayerID", get_sortingLayerID, set_sortingLayerID);
- L.RegVar("sortingOrder", get_sortingOrder, set_sortingOrder);
- L.RegVar("autoSizeTextContainer", get_autoSizeTextContainer, set_autoSizeTextContainer);
- L.RegVar("transform", get_transform, null);
- L.RegVar("renderer", get_renderer, null);
- L.RegVar("mesh", get_mesh, null);
- L.RegVar("meshFilter", get_meshFilter, null);
- L.RegVar("maskType", get_maskType, set_maskType);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetMask(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 3)
- {
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- TMPro.MaskingTypes arg0 = (TMPro.MaskingTypes)ToLua.CheckObject(L, 2, typeof(TMPro.MaskingTypes));
- UnityEngine.Vector4 arg1 = ToLua.ToVector4(L, 3);
- obj.SetMask(arg0, arg1);
- return 0;
- }
- else if (count == 5)
- {
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- TMPro.MaskingTypes arg0 = (TMPro.MaskingTypes)ToLua.CheckObject(L, 2, typeof(TMPro.MaskingTypes));
- UnityEngine.Vector4 arg1 = ToLua.ToVector4(L, 3);
- float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
- float arg3 = (float)LuaDLL.luaL_checknumber(L, 5);
- obj.SetMask(arg0, arg1, arg2, arg3);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: TMPro.TextMeshPro.SetMask");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetVerticesDirty(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- 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.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- 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.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- 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.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- 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.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- 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 UpdateMeshPadding(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- 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)
- {
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- obj.ForceMeshUpdate();
- return 0;
- }
- else if (count == 2)
- {
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.ForceMeshUpdate(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: TMPro.TextMeshPro.ForceMeshUpdate");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetTextInfo(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- 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)
- {
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- obj.ClearMesh();
- return 0;
- }
- else if (count == 2)
- {
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.ClearMesh(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: TMPro.TextMeshPro.ClearMesh");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UpdateGeometry(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.CheckObject(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)
- {
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- obj.UpdateVertexData();
- return 0;
- }
- else if (count == 2)
- {
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- TMPro.TMP_VertexDataUpdateFlags arg0 = (TMPro.TMP_VertexDataUpdateFlags)ToLua.CheckObject(L, 2, typeof(TMPro.TMP_VertexDataUpdateFlags));
- obj.UpdateVertexData(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: TMPro.TextMeshPro.UpdateVertexData");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UpdateFontAsset(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- obj.UpdateFontAsset();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CalculateLayoutInputHorizontal(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- 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.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- obj.CalculateLayoutInputVertical();
- 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.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject<TMPro.TextMeshPro>(L, 1);
- 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_sortingLayerID(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- int ret = obj.sortingLayerID;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index sortingLayerID on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_sortingOrder(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- int ret = obj.sortingOrder;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index sortingOrder on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_autoSizeTextContainer(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- bool ret = obj.autoSizeTextContainer;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoSizeTextContainer on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_transform(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- UnityEngine.Transform ret = obj.transform;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index transform on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_renderer(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- UnityEngine.Renderer ret = obj.renderer;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index renderer on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_mesh(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- UnityEngine.Mesh ret = obj.mesh;
- ToLua.PushSealed(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mesh on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_meshFilter(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- UnityEngine.MeshFilter ret = obj.meshFilter;
- ToLua.PushSealed(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index meshFilter on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_maskType(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- TMPro.MaskingTypes ret = obj.maskType;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index maskType on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_sortingLayerID(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.sortingLayerID = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index sortingLayerID on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_sortingOrder(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.sortingOrder = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index sortingOrder on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_autoSizeTextContainer(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.autoSizeTextContainer = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoSizeTextContainer on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_maskType(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- TMPro.TextMeshPro obj = (TMPro.TextMeshPro)o;
- TMPro.MaskingTypes arg0 = (TMPro.MaskingTypes)ToLua.CheckObject(L, 2, typeof(TMPro.MaskingTypes));
- obj.maskType = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index maskType on a nil value");
- }
- }
- }
|