/dmagick/c/type.d

http://github.com/MikeWey/DMagick · D · 90 lines · 65 code · 17 blank · 8 comment · 0 complexity · 5d2825faed6987df34cc4fd1df9aafaf MD5 · raw file

  1. module dmagick.c.type;
  2. import core.stdc.stdio;
  3. import dmagick.c.exception;
  4. import dmagick.c.magickType;
  5. extern(C)
  6. {
  7. /**
  8. * This setting suggests a type of stretch that ImageMagick should try
  9. * to apply to the currently selected font family.
  10. */
  11. enum StretchType
  12. {
  13. UndefinedStretch, ///
  14. NormalStretch, /// ditto
  15. UltraCondensedStretch, /// ditto
  16. ExtraCondensedStretch, /// ditto
  17. CondensedStretch, /// ditto
  18. SemiCondensedStretch, /// ditto
  19. SemiExpandedStretch, /// ditto
  20. ExpandedStretch, /// ditto
  21. ExtraExpandedStretch, /// ditto
  22. UltraExpandedStretch, /// ditto
  23. AnyStretch /// ditto
  24. }
  25. /**
  26. * This setting suggests a font style that ImageMagick should try to
  27. * apply to the currently selected font family.
  28. */
  29. enum StyleType
  30. {
  31. UndefinedStyle, ///
  32. NormalStyle, /// ditto
  33. ItalicStyle, /// ditto
  34. ObliqueStyle, /// ditto
  35. AnyStyle /// ditto
  36. }
  37. struct TypeInfo
  38. {
  39. size_t
  40. face;
  41. char*
  42. path,
  43. name,
  44. description,
  45. family;
  46. StyleType
  47. style;
  48. StretchType
  49. stretch;
  50. size_t
  51. weight;
  52. char*
  53. encoding,
  54. foundry,
  55. format,
  56. metrics,
  57. glyphs;
  58. MagickBooleanType
  59. stealth;
  60. TypeInfo*
  61. previous,
  62. next;
  63. size_t
  64. signature;
  65. }
  66. char** GetTypeList(const(char)*, size_t*, ExceptionInfo*);
  67. MagickBooleanType ListTypeInfo(FILE*, ExceptionInfo*);
  68. MagickBooleanType TypeComponentGenesis();
  69. const(TypeInfo)* GetTypeInfo(const(char)*, ExceptionInfo*);
  70. const(TypeInfo)* GetTypeInfoByFamily(const(char)*, const StyleType, const StretchType, const size_t, ExceptionInfo*);
  71. const(TypeInfo)** GetTypeInfoList(const(char)*, size_t*, ExceptionInfo*);
  72. void TypeComponentTerminus();
  73. }