TestRoot.cs 884 B

12345678910111213141516171819202122232425262728293031323334
  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 TranslatePointToScreen(Point p)
  24. {
  25. return new Point();
  26. }
  27. }
  28. }