ScrollUp() public method

public ScrollUp ( ) : void
return void
示例#1
0
        void __arrowButton1Click(EventContext context)
        {
            context.StopPropagation();

            if (_vertical)
            {
                _target.ScrollUp();
            }
            else
            {
                _target.ScrollLeft();
            }
        }
    static int ScrollUp(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.ScrollPane)))
            {
                FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.ToObject(L, 1);
                obj.ScrollUp();
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.ScrollPane), typeof(float), typeof(bool)))
            {
                FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.ToObject(L, 1);
                float arg0 = (float)LuaDLL.lua_tonumber(L, 2);
                bool  arg1 = LuaDLL.lua_toboolean(L, 3);
                obj.ScrollUp(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.ScrollPane.ScrollUp"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int ScrollUp(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.CheckObject <FairyGUI.ScrollPane>(L, 1);
                obj.ScrollUp();
                return(0);
            }
            else if (count == 3)
            {
                FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.CheckObject <FairyGUI.ScrollPane>(L, 1);
                float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
                bool  arg1 = LuaDLL.luaL_checkboolean(L, 3);
                obj.ScrollUp(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.ScrollPane.ScrollUp"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
示例#4
0
 static public int ScrollUp(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             FairyGUI.ScrollPane self = (FairyGUI.ScrollPane)checkSelf(l);
             self.ScrollUp();
             pushValue(l, true);
             return(1);
         }
         else if (argc == 3)
         {
             FairyGUI.ScrollPane self = (FairyGUI.ScrollPane)checkSelf(l);
             System.Single       a1;
             checkType(l, 2, out a1);
             System.Boolean a2;
             checkType(l, 3, out a2);
             self.ScrollUp(a1, a2);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }