NullDrawingContextImpl.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. using Avalonia.Media;
  2. using Avalonia.Platform;
  3. using Avalonia.Rendering.SceneGraph;
  4. using Avalonia.Utilities;
  5. using Avalonia.Visuals.Media.Imaging;
  6. namespace Avalonia.Benchmarks
  7. {
  8. internal class NullDrawingContextImpl : IDrawingContextImpl
  9. {
  10. public void Dispose()
  11. {
  12. }
  13. public Matrix Transform { get; set; }
  14. public void Clear(Color color)
  15. {
  16. }
  17. public void DrawBitmap(IRef<IBitmapImpl> source, double opacity, Rect sourceRect, Rect destRect,
  18. BitmapInterpolationMode bitmapInterpolationMode = BitmapInterpolationMode.Default)
  19. {
  20. }
  21. public void DrawBitmap(IRef<IBitmapImpl> source, IBrush opacityMask, Rect opacityMaskRect, Rect destRect)
  22. {
  23. }
  24. public void DrawLine(IPen pen, Point p1, Point p2)
  25. {
  26. }
  27. public void DrawGeometry(IBrush brush, IPen pen, IGeometryImpl geometry)
  28. {
  29. }
  30. public void DrawRectangle(IBrush brush, IPen pen, RoundedRect rect, BoxShadows boxShadows = default)
  31. {
  32. }
  33. public void DrawText(IBrush foreground, Point origin, IFormattedTextImpl text)
  34. {
  35. }
  36. public void DrawGlyphRun(IBrush foreground, GlyphRun glyphRun)
  37. {
  38. }
  39. public IDrawingContextLayerImpl CreateLayer(Size size)
  40. {
  41. return null;
  42. }
  43. public void PushClip(Rect clip)
  44. {
  45. }
  46. public void PushClip(RoundedRect clip)
  47. {
  48. }
  49. public void PopClip()
  50. {
  51. }
  52. public void PushOpacity(double opacity)
  53. {
  54. }
  55. public void PopOpacity()
  56. {
  57. }
  58. public void PushOpacityMask(IBrush mask, Rect bounds)
  59. {
  60. }
  61. public void PopOpacityMask()
  62. {
  63. }
  64. public void PushGeometryClip(IGeometryImpl clip)
  65. {
  66. }
  67. public void PopGeometryClip()
  68. {
  69. }
  70. public void PushBitmapBlendMode(BitmapBlendingMode blendingMode)
  71. {
  72. }
  73. public void PopBitmapBlendMode()
  74. {
  75. }
  76. public void Custom(ICustomDrawOperation custom)
  77. {
  78. }
  79. }
  80. }