From cbac78bbec726017355cb455a776f193e7fc3022 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sat, 8 Jan 2011 17:48:30 +0100 Subject: initial checkin --- dmagick/c/type.d | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 dmagick/c/type.d (limited to 'dmagick/c/type.d') diff --git a/dmagick/c/type.d b/dmagick/c/type.d new file mode 100644 index 0000000..2365443 --- /dev/null +++ b/dmagick/c/type.d @@ -0,0 +1,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(); +} -- cgit v1.2.3