IPaintImplementation.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using PixiEditor.DrawingApi.Core.ColorsImpl;
  3. using PixiEditor.DrawingApi.Core.Shaders;
  4. using PixiEditor.DrawingApi.Core.Surfaces;
  5. using PixiEditor.DrawingApi.Core.Surfaces.PaintImpl;
  6. namespace PixiEditor.DrawingApi.Core.Bridge.NativeObjectsImpl
  7. {
  8. public interface IPaintImplementation
  9. {
  10. public IntPtr CreatePaint();
  11. public void Dispose(IntPtr paintObjPointer);
  12. public Paint Clone(IntPtr paintObjPointer);
  13. public Color GetColor(Paint paint);
  14. public void SetColor(Paint paint, Color value);
  15. public BlendMode GetBlendMode(Paint paint);
  16. public void SetBlendMode(Paint paint, BlendMode value);
  17. public FilterQuality GetFilterQuality(Paint paint);
  18. public void SetFilterQuality(Paint paint, FilterQuality value);
  19. public bool GetIsAntiAliased(Paint paint);
  20. public void SetIsAntiAliased(Paint paint, bool value);
  21. public PaintStyle GetStyle(Paint paint);
  22. public void SetStyle(Paint paint, PaintStyle value);
  23. public StrokeCap GetStrokeCap(Paint paint);
  24. public void SetStrokeCap(Paint paint, StrokeCap value);
  25. public float GetStrokeWidth(Paint paint);
  26. public void SetStrokeWidth(Paint paint, float value);
  27. public ColorFilter GetColorFilter(Paint paint);
  28. public void SetColorFilter(Paint paint, ColorFilter value);
  29. public ImageFilter GetImageFilter(Paint paint);
  30. public void SetImageFilter(Paint paint, ImageFilter value);
  31. public object GetNativePaint(IntPtr objectPointer);
  32. public Shader? GetShader(Paint paint);
  33. public void SetShader(Paint paint, Shader shader);
  34. }
  35. }