PageRenderTime 24ms CodeModel.GetById 12ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/dmagick/c/type.d

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