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
ファイル: IWindowTests.cs プロジェクト: vchelaru/FlatRedBall
        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");
            }
        }