TestRoot.cs 989 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright (c) The Perspex Project. All rights reserved.
  2. // Licensed under the MIT license. See licence.md file in the project root for full license information.
  3. using System;
  4. using Moq;
  5. using Perspex.Controls;
  6. using Perspex.Layout;
  7. using Perspex.Platform;
  8. using Perspex.Rendering;
  9. namespace Perspex.Styling.UnitTests
  10. {
  11. internal class TestRoot : Decorator, ILayoutRoot, IRenderRoot, IStyleRoot
  12. {
  13. public Size ClientSize => new Size(100, 100);
  14. public Size MaxClientSize => Size.Infinity;
  15. public IRenderTarget RenderTarget
  16. {
  17. get { throw new NotImplementedException(); }
  18. }
  19. public IRenderQueueManager RenderQueueManager
  20. {
  21. get { throw new NotImplementedException(); }
  22. }
  23. public Point PointToClient(Point p)
  24. {
  25. throw new NotImplementedException();
  26. }
  27. public Point PointToScreen(Point p)
  28. {
  29. return new Point();
  30. }
  31. }
  32. }