Example #1
0
    static int set_dragEffect(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollView            obj  = (UIScrollView)o;
            UIScrollView.DragEffect arg0 = (UIScrollView.DragEffect)ToLua.CheckObject(L, 2, typeof(UIScrollView.DragEffect));
            obj.dragEffect = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index dragEffect on a nil value"));
        }
    }
Example #2
0
    static int get_dragEffect(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollView            obj = (UIScrollView)o;
            UIScrollView.DragEffect ret = obj.dragEffect;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index dragEffect on a nil value"));
        }
    }
Example #3
0
    private static int set_dragEffect(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            UIScrollView            uIScrollView = (UIScrollView)obj;
            UIScrollView.DragEffect dragEffect   = (UIScrollView.DragEffect)((int)ToLua.CheckObject(L, 2, typeof(UIScrollView.DragEffect)));
            uIScrollView.dragEffect = dragEffect;
            result = 0;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index dragEffect on a nil value");
        }
        return(result);
    }
Example #4
0
    private static int get_dragEffect(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            UIScrollView            uIScrollView = (UIScrollView)obj;
            UIScrollView.DragEffect dragEffect   = uIScrollView.dragEffect;
            ToLua.Push(L, dragEffect);
            result = 1;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index dragEffect on a nil value");
        }
        return(result);
    }