ScrollRight() public method

public ScrollRight ( ) : void
return void
コード例 #1
0
        void __arrowButton2Click(EventContext context)
        {
            context.StopPropagation();

            if (_vertical)
            {
                _target.ScrollDown();
            }
            else
            {
                _target.ScrollRight();
            }
        }
コード例 #2
0
    static int ScrollRight(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.ScrollRight();
                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.ScrollRight(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.ScrollPane.ScrollRight"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #3
0
    static int ScrollRight(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.CheckObject <FairyGUI.ScrollPane>(L, 1);
                obj.ScrollRight();
                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.ScrollRight(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.ScrollPane.ScrollRight"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #4
0
 static public int ScrollRight(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             FairyGUI.ScrollPane self = (FairyGUI.ScrollPane)checkSelf(l);
             self.ScrollRight();
             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.ScrollRight(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));
     }
 }