CharDesc.generated.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup GUI_Engine
  7. * @{
  8. */
  9. /// <summary>Describes a single character in a font of a specific size.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct CharDesc
  12. {
  13. /// <summary>Character ID, corresponding to a Unicode key.</summary>
  14. public uint charId;
  15. /// <summary>Index of the texture the character is located on.</summary>
  16. public uint page;
  17. /// <summary>Texture coordinates of the character in the page texture.</summary>
  18. public float uvX;
  19. /// <summary>Texture coordinates of the character in the page texture.</summary>
  20. public float uvY;
  21. /// <summary>Width/height of the character in texture coordinates.</summary>
  22. public float uvWidth;
  23. /// <summary>Width/height of the character in texture coordinates.</summary>
  24. public float uvHeight;
  25. /// <summary>Width/height of the character in pixels.</summary>
  26. public uint width;
  27. /// <summary>Width/height of the character in pixels.</summary>
  28. public uint height;
  29. /// <summary>Offset for the visible portion of the character in pixels.</summary>
  30. public int xOffset;
  31. /// <summary>Offset for the visible portion of the character in pixels.</summary>
  32. public int yOffset;
  33. /// <summary>Determines how much to advance the pen after writing this character, in pixels.</summary>
  34. public int xAdvance;
  35. /// <summary>Determines how much to advance the pen after writing this character, in pixels.</summary>
  36. public int yAdvance;
  37. /// <summary>
  38. /// Pairs that determine if certain character pairs should be closer or father together. for example "AV" combination.
  39. /// </summary>
  40. public KerningPair[] kerningPairs;
  41. }
  42. /** @} */
  43. }