mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using Microsoft.Xna.Framework;
|
|
using Point = Microsoft.Xna.Framework.Point;
|
|
using Rectangle = Microsoft.Xna.Framework.Rectangle;
|
|
|
|
namespace MonoGame.Extended.Tests
|
|
{
|
|
public class MockGameWindow : GameWindow
|
|
{
|
|
public override bool AllowUserResizing { get; set; }
|
|
public override Rectangle ClientBounds { get; }
|
|
public override Point Position { get; set; }
|
|
public override DisplayOrientation CurrentOrientation { get; }
|
|
public override IntPtr Handle { get; }
|
|
public override string ScreenDeviceName { get; }
|
|
|
|
public MockGameWindow()
|
|
{
|
|
}
|
|
|
|
public override void BeginScreenDeviceChange(bool willBeFullScreen)
|
|
{
|
|
}
|
|
|
|
public override void EndScreenDeviceChange(string screenDeviceName, int clientWidth, int clientHeight)
|
|
{
|
|
}
|
|
|
|
protected override void SetSupportedOrientations(DisplayOrientation orientations)
|
|
{
|
|
}
|
|
|
|
protected override void SetTitle(string title)
|
|
{
|
|
}
|
|
|
|
#if __MonoCS__
|
|
public override Icon Icon { get; set; }
|
|
#endif
|
|
}
|
|
} |