Example #1
0
 static int GetElementWidth(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIGrid obj = (UIGrid)ToLua.CheckObject <UIGrid>(L, 1);
         float  o   = obj.GetElementWidth();
         LuaDLL.lua_pushnumber(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }