ISvgClipable.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Drawing;
  5. using System.Drawing.Drawing2D;
  6. #pragma warning disable
  7. namespace Svg
  8. {
  9. /// <summary>
  10. /// Defines the methods and properties that an <see cref="SvgElement"/> must implement to support clipping.
  11. /// </summary>
  12. public interface ISvgClipable
  13. {
  14. /// <summary>
  15. /// Gets or sets the ID of the associated <see cref="SvgClipPath"/> if one has been specified.
  16. /// </summary>
  17. Uri ClipPath { get; set; }
  18. /// <summary>
  19. /// Specifies the rule used to define the clipping region when the element is within a <see cref="SvgClipPath"/>.
  20. /// </summary>
  21. SvgClipRule ClipRule { get; set; }
  22. /// <summary>
  23. /// Sets the clipping region of the specified <see cref="ISvgRenderer"/>.
  24. /// </summary>
  25. /// <param name="renderer">The <see cref="ISvgRenderer"/> to have its clipping region set.</param>
  26. void SetClip(ISvgRenderer renderer);
  27. /// <summary>
  28. /// Resets the clipping region of the specified <see cref="ISvgRenderer"/> back to where it was before the <see cref="SetClip"/> method was called.
  29. /// </summary>
  30. /// <param name="renderer">The <see cref="ISvgRenderer"/> to have its clipping region reset.</param>
  31. void ResetClip(ISvgRenderer renderer);
  32. }
  33. }
  34. #pragma warning restore