CharRange.editor.generated.cs 917 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //************** Copyright (c) 2016-2019 Marko Pintera ([email protected]). All rights reserved. *******************//
  3. using System;
  4. using System.Runtime.CompilerServices;
  5. using System.Runtime.InteropServices;
  6. using bs;
  7. namespace bs.Editor
  8. {
  9. /** @addtogroup Text
  10. * @{
  11. */
  12. /// <summary>Represents a range of character code.</summary>
  13. [StructLayout(LayoutKind.Sequential), SerializeObject]
  14. public partial struct CharRange
  15. {
  16. /// <summary>Initializes the struct with default values.</summary>
  17. public static CharRange Default()
  18. {
  19. CharRange value = new CharRange();
  20. value.start = 0;
  21. value.end = 0;
  22. return value;
  23. }
  24. public CharRange(int start, int end)
  25. {
  26. this.start = start;
  27. this.end = end;
  28. }
  29. public int start;
  30. public int end;
  31. }
  32. /** @} */
  33. }