ScrollLeft() public method

public ScrollLeft ( ) : void
return void
Example #1
0
        void __arrowButton1Click(EventContext context)
        {
            context.StopPropagation();

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

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