summaryrefslogtreecommitdiff
path: root/dmagick/c/type.d
blob: 2365443aa46ebccd22ebbfcd9e514006ddc060e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
module dmagick.c.type;

import core.stdc.stdio;

import dmagick.c.exception;
import dmagick.c.magickType;

extern(C)
{
	enum StretchType
	{
		UndefinedStretch,
		NormalStretch,
		UltraCondensedStretch,
		ExtraCondensedStretch,
		CondensedStretch,
		SemiCondensedStretch,
		SemiExpandedStretch,
		ExpandedStretch,
		ExtraExpandedStretch,
		UltraExpandedStretch,
		AnyStretch
	}

	enum StyleType
	{
		UndefinedStyle,
		NormalStyle,
		ItalicStyle,
		ObliqueStyle,
		AnyStyle
	}

	struct TypeInfo
	{
		size_t
			face;

		char*
			path,
			name,
			description,
			family;

		StyleType
			style;

		StretchType
			stretch;

		size_t
			weight;

		char*
			encoding,
			foundry,
			format,
			metrics,
			glyphs;

		MagickBooleanType
			stealth;

		TypeInfo*
			previous,
			next;

		size_t
			signature;
	}

	char** GetTypeList(const char*, size_t*, ExceptionInfo*);

	MagickBooleanType ListTypeInfo(FILE*, ExceptionInfo*);
	MagickBooleanType TypeComponentGenesis();

	const(TypeInfo*)  GetTypeInfo(const char*, ExceptionInfo*);
	const(TypeInfo*)  GetTypeInfoByFamily(const char*, const StyleType, const StretchType, const size_t, ExceptionInfo*);
	const(TypeInfo**) GetTypeInfoList(const char*, size_t*, ExceptionInfo*);

	void TypeComponentTerminus();
}