Browse Source

Fix non-compiling assemblies.

pull/4887/head
Steven Kirk 5 years ago
parent
commit
4e3af8c9c1
  1. 12
      src/iOS/Avalonia.iOS/Stubs.cs
  2. 9
      tests/Avalonia.Benchmarks/NullCursorFactory.cs

12
src/iOS/Avalonia.iOS/Stubs.cs

@ -5,9 +5,15 @@ using Avalonia.Platform;
namespace Avalonia.iOS
{
class CursorFactoryStub : IStandardCursorFactory
class CursorFactoryStub : ICursorFactory
{
public IPlatformHandle GetCursor(StandardCursorType cursorType) => new PlatformHandle(IntPtr.Zero, "NULL");
public ICursorImpl CreateCursor(IBitmapImpl cursor, PixelPoint hotSpot) => new CursorImplStub();
ICursorImpl ICursorFactory.GetCursor(StandardCursorType cursorType) => new CursorImplStub();
private class CursorImplStub : ICursorImpl
{
public void Dispose() { }
}
}
class WindowingPlatformStub : IWindowingPlatform
@ -57,4 +63,4 @@ namespace Avalonia.iOS
_ms.CopyTo(outputStream);
}
}
}
}

9
tests/Avalonia.Benchmarks/NullCursorFactory.cs

@ -4,11 +4,14 @@ using Avalonia.Platform;
namespace Avalonia.Benchmarks
{
internal class NullCursorFactory : IStandardCursorFactory
internal class NullCursorFactory : ICursorFactory
{
public IPlatformHandle GetCursor(StandardCursorType cursorType)
public ICursorImpl CreateCursor(IBitmapImpl cursor, PixelPoint hotSpot) => new NullCursorImpl();
ICursorImpl ICursorFactory.GetCursor(StandardCursorType cursorType) => new NullCursorImpl();
private class NullCursorImpl : ICursorImpl
{
return new PlatformHandle(IntPtr.Zero, "null");
public void Dispose() { }
}
}
}

Loading…
Cancel
Save