type.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007   
00008     https://imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore image type methods.
00017 */
00018 #ifndef MAGICKCORE_TYPE_H
00019 #define MAGICKCORE_TYPE_H
00020 
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024 
00025 typedef enum
00026 {
00027   UndefinedStretch,
00028   NormalStretch,
00029   UltraCondensedStretch,
00030   ExtraCondensedStretch,
00031   CondensedStretch,
00032   SemiCondensedStretch,
00033   SemiExpandedStretch,
00034   ExpandedStretch,
00035   ExtraExpandedStretch,
00036   UltraExpandedStretch,
00037   AnyStretch
00038 } StretchType;
00039 
00040 typedef enum
00041 {
00042   UndefinedStyle,
00043   NormalStyle,
00044   ItalicStyle,
00045   ObliqueStyle,
00046   AnyStyle,
00047   BoldStyle
00048 } StyleType;
00049 
00050 typedef struct _TypeInfo
00051 {
00052   size_t
00053     face;
00054 
00055   char
00056     *path,
00057     *name,
00058     *description,
00059     *family;
00060 
00061   StyleType
00062     style;
00063 
00064   StretchType
00065     stretch;
00066 
00067   size_t
00068     weight;
00069 
00070   char
00071     *encoding,
00072     *foundry,
00073     *format,
00074     *metrics,
00075     *glyphs;
00076 
00077   MagickBooleanType
00078     stealth;
00079 
00080   size_t
00081     signature;
00082 } TypeInfo;
00083 
00084 extern MagickExport char
00085   **GetTypeList(const char *,size_t *,ExceptionInfo *);
00086 
00087 extern MagickExport MagickBooleanType
00088   ListTypeInfo(FILE *,ExceptionInfo *);
00089 
00090 extern MagickExport const TypeInfo
00091   *GetTypeInfo(const char *,ExceptionInfo *),
00092   *GetTypeInfoByFamily(const char *,const StyleType,const StretchType,
00093     const size_t,ExceptionInfo *),
00094   **GetTypeInfoList(const char *,size_t *,ExceptionInfo *);
00095 
00096 #if defined(__cplusplus) || defined(c_plusplus)
00097 }
00098 #endif
00099 
00100 #endif

Generated on 24 Feb 2020 for MagickCore by  doxygen 1.6.1