diff options
| author | Mike Wey | 2011-01-08 17:48:30 +0100 |
|---|---|---|
| committer | Mike Wey | 2011-01-08 17:48:30 +0100 |
| commit | cbac78bbec726017355cb455a776f193e7fc3022 (patch) | |
| tree | a41c564c7ef5aec9dd2b18e58e94b213193044be /dmagick/c/type.d | |
initial checkin
Diffstat (limited to 'dmagick/c/type.d')
| -rw-r--r-- | dmagick/c/type.d | 82 |
1 files changed, 82 insertions, 0 deletions
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(); +} |
