SetRect() 공개 추상적인 메소드

Set the rectangle manually.
public abstract SetRect ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
리턴 void
예제 #1
0
    public static int SetRect(IntPtr l)
    {
        int result;

        try
        {
            UIRect uIRect = (UIRect)LuaObject.checkSelf(l);
            float  x;
            LuaObject.checkType(l, 2, out x);
            float y;
            LuaObject.checkType(l, 3, out y);
            float width;
            LuaObject.checkType(l, 4, out width);
            float height;
            LuaObject.checkType(l, 5, out height);
            uIRect.SetRect(x, y, width, height);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
예제 #2
0
    static int SetRect(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 5);
        UIRect obj  = (UIRect)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIRect");
        float  arg0 = (float)LuaScriptMgr.GetNumber(L, 2);
        float  arg1 = (float)LuaScriptMgr.GetNumber(L, 3);
        float  arg2 = (float)LuaScriptMgr.GetNumber(L, 4);
        float  arg3 = (float)LuaScriptMgr.GetNumber(L, 5);

        obj.SetRect(arg0, arg1, arg2, arg3);
        return(0);
    }
예제 #3
0
    private static int SetRect(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 5);
        UIRect uIRect = (UIRect)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIRect");
        float  x      = (float)LuaScriptMgr.GetNumber(L, 2);
        float  y      = (float)LuaScriptMgr.GetNumber(L, 3);
        float  width  = (float)LuaScriptMgr.GetNumber(L, 4);
        float  height = (float)LuaScriptMgr.GetNumber(L, 5);

        uIRect.SetRect(x, y, width, height);
        return(0);
    }
예제 #4
0
    static int SetRect(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 5);
        UIRect obj  = LuaScriptMgr.GetNetObject <UIRect>(L, 1);
        float  arg0 = (float)LuaScriptMgr.GetNumber(L, 2);
        float  arg1 = (float)LuaScriptMgr.GetNumber(L, 3);
        float  arg2 = (float)LuaScriptMgr.GetNumber(L, 4);
        float  arg3 = (float)LuaScriptMgr.GetNumber(L, 5);

        obj.SetRect(arg0, arg1, arg2, arg3);
        return(0);
    }
예제 #5
0
 static int SetRect(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         UIRect obj  = (UIRect)ToLua.CheckObject <UIRect>(L, 1);
         float  arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         float  arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         float  arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
         float  arg3 = (float)LuaDLL.luaL_checknumber(L, 5);
         obj.SetRect(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #6
0
 static public int SetRect(IntPtr l)
 {
     try {
         UIRect        self = (UIRect)checkSelf(l);
         System.Single a1;
         checkType(l, 2, out a1);
         System.Single a2;
         checkType(l, 3, out a2);
         System.Single a3;
         checkType(l, 4, out a3);
         System.Single a4;
         checkType(l, 5, out a4);
         self.SetRect(a1, a2, a3, a4);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #7
0
    private static int SetRect(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 5);
            UIRect uIRect = (UIRect)ToLua.CheckObject(L, 1, typeof(UIRect));
            float  x      = (float)LuaDLL.luaL_checknumber(L, 2);
            float  y      = (float)LuaDLL.luaL_checknumber(L, 3);
            float  width  = (float)LuaDLL.luaL_checknumber(L, 4);
            float  height = (float)LuaDLL.luaL_checknumber(L, 5);
            uIRect.SetRect(x, y, width, height);
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }