TestRoot.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 Perspex.Platform;
  5. using Perspex.Rendering;
  6. namespace Perspex.SceneGraph.UnitTests
  7. {
  8. public class TestRoot : TestVisual, IRenderRoot, INameScope
  9. {
  10. private NameScope nameScope = new NameScope();
  11. public IRenderTarget RenderTarget
  12. {
  13. get { throw new NotImplementedException(); }
  14. }
  15. public IRenderQueueManager RenderQueueManager
  16. {
  17. get { throw new NotImplementedException(); }
  18. }
  19. public Point TranslatePointToScreen(Point p)
  20. {
  21. throw new NotImplementedException();
  22. }
  23. public void Register(string name, object element)
  24. {
  25. nameScope.Register(name, element);
  26. }
  27. public object Find(string name)
  28. {
  29. return nameScope.Find(name);
  30. }
  31. public void Unregister(string name)
  32. {
  33. nameScope.Unregister(name);
  34. }
  35. }
  36. }