ColorSpectrumComponents.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // This source file is adapted from the WinUI project.
  2. // (https://github.com/microsoft/microsoft-ui-xaml)
  3. //
  4. // Licensed to The Avalonia Project under the MIT License.
  5. using Avalonia.Controls.Primitives;
  6. namespace Avalonia.Controls
  7. {
  8. /// <summary>
  9. /// Defines the two HSV color components displayed by a <see cref="ColorSpectrum"/>.
  10. /// </summary>
  11. /// <remarks>
  12. /// Order of the color components is important and correspond with an X/Y axis in Box
  13. /// shape or a degree/radius in Ring shape.
  14. /// </remarks>
  15. public enum ColorSpectrumComponents
  16. {
  17. /// <summary>
  18. /// The Hue and Value components.
  19. /// </summary>
  20. /// <remarks>
  21. /// In Box shape, Hue is mapped to the X-axis and Value is mapped to the Y-axis.
  22. /// In Ring shape, Hue is mapped to degrees and Value is mapped to radius.
  23. /// </remarks>
  24. HueValue,
  25. /// <summary>
  26. /// The Value and Hue components.
  27. /// </summary>
  28. /// <remarks>
  29. /// In Box shape, Value is mapped to the X-axis and Hue is mapped to the Y-axis.
  30. /// In Ring shape, Value is mapped to degrees and Hue is mapped to radius.
  31. /// </remarks>
  32. ValueHue,
  33. /// <summary>
  34. /// The Hue and Saturation components.
  35. /// </summary>
  36. /// <remarks>
  37. /// In Box shape, Hue is mapped to the X-axis and Saturation is mapped to the Y-axis.
  38. /// In Ring shape, Hue is mapped to degrees and Saturation is mapped to radius.
  39. /// </remarks>
  40. HueSaturation,
  41. /// <summary>
  42. /// The Saturation and Hue components.
  43. /// </summary>
  44. /// <remarks>
  45. /// In Box shape, Saturation is mapped to the X-axis and Hue is mapped to the Y-axis.
  46. /// In Ring shape, Saturation is mapped to degrees and Hue is mapped to radius.
  47. /// </remarks>
  48. SaturationHue,
  49. /// <summary>
  50. /// The Saturation and Value components.
  51. /// </summary>
  52. /// <remarks>
  53. /// In Box shape, Saturation is mapped to the X-axis and Value is mapped to the Y-axis.
  54. /// In Ring shape, Saturation is mapped to degrees and Value is mapped to radius.
  55. /// </remarks>
  56. SaturationValue,
  57. /// <summary>
  58. /// The Value and Saturation components.
  59. /// </summary>
  60. /// <remarks>
  61. /// In Box shape, Value is mapped to the X-axis and Saturation is mapped to the Y-axis.
  62. /// In Ring shape, Value is mapped to degrees and Saturation is mapped to radius.
  63. /// </remarks>
  64. ValueSaturation,
  65. };
  66. }