1 module fontconfig.functions; 2 3 public import fontconfig.fctypes; 4 5 6 extern( C ) @nogc nothrow { 7 8 alias pFcObjectSetBuild = FcObjectSet * function(const char *first, ...); 9 10 alias pFcPatternCreate = FcPattern * function(); 11 12 alias pFcPatternAddBool = FcBool function(FcPattern *p, const char *object, FcBool b); 13 14 alias pFcFontList = FcFontSet * function(FcConfig *config, FcPattern *p, FcObjectSet *os); 15 16 alias pFcPatternDestroy = void function(FcPattern *p); 17 18 alias pFcObjectSetDestroy = void function(FcObjectSet *os); 19 20 alias pFcPatternGetString = FcResult function(const FcPattern *p, const char *object, int n, FcChar8 ** s); 21 22 alias pFcPatternGetInteger = FcResult function(const FcPattern *p, const char *object, int n, int *i); 23 24 alias pFcPatternGetBool = FcResult function(const FcPattern *p, const char *object, int n, FcBool *b); 25 26 alias pFcFontSetDestroy = void function(FcFontSet *s); 27 } 28 29 __gshared { 30 31 pFcObjectSetBuild FcObjectSetBuild; 32 33 pFcPatternCreate FcPatternCreate; 34 35 pFcPatternAddBool FcPatternAddBool; 36 37 pFcFontList FcFontList; 38 39 pFcPatternDestroy FcPatternDestroy; 40 41 pFcObjectSetDestroy FcObjectSetDestroy; 42 43 pFcPatternGetString FcPatternGetString; 44 45 pFcPatternGetInteger FcPatternGetInteger; 46 47 pFcPatternGetBool FcPatternGetBool; 48 49 pFcFontSetDestroy 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 +/