1 module fontconfig.functions;
2
3 public import fontconfig.fctypes;
4
5
6 extern( C ) @nogc nothrow {
7
8 alias da_FC_FcObjectSetBuild = FcObjectSet * function(const char *first, ...);
9
10 alias da_FC_FcPatternCreate = FcPattern * function();
11
12 alias da_FC_FcPatternAddBool = FcBool function(FcPattern *p, const char *object, FcBool b);
13
14 alias da_FC_FcFontList = FcFontSet * function(FcConfig *config, FcPattern *p, FcObjectSet *os);
15
16 alias da_FC_FcPatternDestroy = void function(FcPattern *p);
17
18 alias da_FC_FcObjectSetDestroy = void function(FcObjectSet *os);
19
20 alias da_FC_FcPatternGetString = FcResult function(const FcPattern *p, const char *object, int n, FcChar8 ** s);
21
22 alias da_FC_FcPatternGetInteger = FcResult function(const FcPattern *p, const char *object, int n, int *i);
23
24 alias da_FC_FcPatternGetBool = FcResult function(const FcPattern *p, const char *object, int n, FcBool *b);
25
26 alias da_FC_FcFontSetDestroy = void function(FcFontSet *s);
27 }
28
29 __gshared {
30
31 da_FC_FcObjectSetBuild FcObjectSetBuild;
32
33 da_FC_FcPatternCreate FcPatternCreate;
34
35 da_FC_FcPatternAddBool FcPatternAddBool;
36
37 da_FC_FcFontList FcFontList;
38
39 da_FC_FcPatternDestroy FcPatternDestroy;
40
41 da_FC_FcObjectSetDestroy FcObjectSetDestroy;
42
43 da_FC_FcPatternGetString FcPatternGetString;
44
45 da_FC_FcPatternGetInteger FcPatternGetInteger;
46
47 da_FC_FcPatternGetBool FcPatternGetBool;
48
49 da_FC_FcFontSetDestroy FcFontSetDestroy;
50 }
51
52 /+
53 extern(C) FcObjectSet * FcObjectSetBuild(const char *first, ...);
54
55 extern(C) FcPattern * FcPatternCreate();
56
57 extern(C) FcBool FcPatternAddBool(FcPattern *p, const char *object, FcBool b);
58
59 extern(C) FcFontSet * FcFontList(FcConfig *config, FcPattern *p, FcObjectSet *os);
60
61 extern(C) void FcPatternDestroy(FcPattern *p);
62
63 extern(C) void FcObjectSetDestroy(FcObjectSet *os);
64
65 extern(C) FcResult FcPatternGetString(const FcPattern *p, const char *object, int n, FcChar8 ** s);
66
67 extern(C) FcResult FcPatternGetInteger(const FcPattern *p, const char *object, int n, int *i);
68
69 extern(C) FcResult FcPatternGetBool (const FcPattern *p, const char *object, int n, FcBool *b);
70
71 extern(C) void FcFontSetDestroy (FcFontSet *s);
72
73 +/