TestRoot.cs 1004 B

1234567891011121314151617181920212223242526272829303132333435363738
  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.Layout;
  6. using Perspex.Platform;
  7. using Perspex.Rendering;
  8. using Perspex.Styling;
  9. namespace Perspex.Controls.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 ILayoutManager LayoutManager => new Mock<ILayoutManager>().Object;
  16. public IRenderTarget RenderTarget
  17. {
  18. get { throw new NotImplementedException(); }
  19. }
  20. public IRenderQueueManager RenderQueueManager => null;
  21. public Point PointToClient(Point p)
  22. {
  23. throw new NotImplementedException();
  24. }
  25. public Point PointToScreen(Point p)
  26. {
  27. return new Point();
  28. }
  29. }
  30. }