Inheritance: IWindow, IVisible
示例#1
0
        public void TestEvents()
        {
            IWindowImplementation iwi = new IWindowImplementation();

            GuiManager.AddWindow(iwi);
            GuiManager.Cursor.UsingMouse = false;

            Microsoft.Xna.Framework.GameTime gameTime = new Microsoft.Xna.Framework.GameTime(
                new TimeSpan(0, 0, 0, 0, 1), new TimeSpan(0, 0, 0, 0, 1));

            FlatRedBallServices.Update(gameTime);

            if (GuiManager.Cursor.WindowOver != iwi)
            {
                throw new Exception("The cursor should be over the window");
            }
        }
示例#2
0
        public void TestEvents()
        {
            IWindowImplementation iwi = new IWindowImplementation();
            GuiManager.AddWindow(iwi);
            GuiManager.Cursor.UsingMouse = false;

            Microsoft.Xna.Framework.GameTime gameTime = new Microsoft.Xna.Framework.GameTime(
                new TimeSpan(0, 0, 0, 0, 1), new TimeSpan(0, 0, 0, 0, 1));

            FlatRedBallServices.Update(gameTime);

            if (GuiManager.Cursor.WindowOver != iwi)
            {
                throw new Exception("The cursor should be over the window");
            }
        }