LengthUnit.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #region License
  2. /* Copyright 2011, 2013 James F. Bellinger <http://www.zer7.com/software/hidsharp>
  3. Permission to use, copy, modify, and/or distribute this software for any
  4. purpose with or without fee is hereby granted, provided that the above
  5. copyright notice and this permission notice appear in all copies.
  6. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  7. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  8. MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  9. ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  10. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  11. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  12. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
  13. #endregion
  14. namespace HidSharp.ReportDescriptors.Units
  15. {
  16. /// <summary>
  17. /// Defines the possible units of length.
  18. /// </summary>
  19. public enum LengthUnit
  20. {
  21. /// <summary>
  22. /// The unit system has no unit of length.
  23. /// </summary>
  24. None,
  25. /// <summary>
  26. /// The unit of length is the centimeter (occurs in the SI Linear unit system).
  27. /// </summary>
  28. Centimeter,
  29. /// <summary>
  30. /// The unit of length is the radian (occurs in the SI Rotation unit system).
  31. /// </summary>
  32. Radians,
  33. /// <summary>
  34. /// The unit of length is the inch (occurs in the English Linear unit system).
  35. /// </summary>
  36. Inch,
  37. /// <summary>
  38. /// The unit of length is the degree (occurs in the English Rotation unit system).
  39. /// </summary>
  40. Degrees
  41. }
  42. }