⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftmodapi.h

📁 奇趣公司比较新的qt/emd版本
💻 H
📖 第 1 页 / 共 2 页
字号:
/***************************************************************************//*                                                                         *//*  ftmodapi.h                                                             *//*                                                                         *//*    FreeType modules public interface (specification).                   *//*                                                                         *//*  Copyright 1996-2001, 2002, 2003, 2006 by                               *//*  David Turner, Robert Wilhelm, and Werner Lemberg.                      *//*                                                                         *//*  This file is part of the FreeType project, and may only be used,       *//*  modified, and distributed under the terms of the FreeType project      *//*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     *//*  this file you indicate that you have read the license and              *//*  understand and accept it fully.                                        *//*                                                                         *//***************************************************************************/#ifndef __FTMODAPI_H__#define __FTMODAPI_H__#include <ft2build.h>#include FT_FREETYPE_H#ifdef FREETYPE_H#error "freetype.h of FreeType 1 has been loaded!"#error "Please fix the directory search order for header files"#error "so that freetype.h of FreeType 2 is found first."#endifFT_BEGIN_HEADER  /*************************************************************************/  /*                                                                       */  /* <Section>                                                             */  /*    module_management                                                  */  /*                                                                       */  /* <Title>                                                               */  /*    Module Management                                                  */  /*                                                                       */  /* <Abstract>                                                            */  /*    How to add, upgrade, and remove modules from FreeType.             */  /*                                                                       */  /* <Description>                                                         */  /*    The definitions below are used to manage modules within FreeType.  */  /*    Modules can be added, upgraded, and removed at runtime.            */  /*                                                                       */  /*************************************************************************/  /* module bit flags */#define FT_MODULE_FONT_DRIVER         1  /* this module is a font driver  */#define FT_MODULE_RENDERER            2  /* this module is a renderer     */#define FT_MODULE_HINTER              4  /* this module is a glyph hinter */#define FT_MODULE_STYLER              8  /* this module is a styler       */#define FT_MODULE_DRIVER_SCALABLE     0x100   /* the driver supports      */                                              /* scalable fonts           */#define FT_MODULE_DRIVER_NO_OUTLINES  0x200   /* the driver does not      */                                              /* support vector outlines  */#define FT_MODULE_DRIVER_HAS_HINTER   0x400   /* the driver provides its  */                                              /* own hinter               */  /* deprecated values */#define ft_module_font_driver         FT_MODULE_FONT_DRIVER#define ft_module_renderer            FT_MODULE_RENDERER#define ft_module_hinter              FT_MODULE_HINTER#define ft_module_styler              FT_MODULE_STYLER#define ft_module_driver_scalable     FT_MODULE_DRIVER_SCALABLE#define ft_module_driver_no_outlines  FT_MODULE_DRIVER_NO_OUTLINES#define ft_module_driver_has_hinter   FT_MODULE_DRIVER_HAS_HINTER  typedef FT_Pointer  FT_Module_Interface;  typedef FT_Error  (*FT_Module_Constructor)( FT_Module  module );  typedef void  (*FT_Module_Destructor)( FT_Module  module );  typedef FT_Module_Interface  (*FT_Module_Requester)( FT_Module    module,                          const char*  name );  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    FT_Module_Class                                                    */  /*                                                                       */  /* <Description>                                                         */  /*    The module class descriptor.                                       */  /*                                                                       */  /* <Fields>                                                              */  /*    module_flags    :: Bit flags describing the module.                */  /*                                                                       */  /*    module_size     :: The size of one module object/instance in       */  /*                       bytes.                                          */  /*                                                                       */  /*    module_name     :: The name of the module.                         */  /*                                                                       */  /*    module_version  :: The version, as a 16.16 fixed number            */  /*                       (major.minor).                                  */  /*                                                                       */  /*    module_requires :: The version of FreeType this module requires,   */  /*                       as a 16.16 fixed number (major.minor).  Starts  */  /*                       at version 2.0, i.e., 0x20000.                  */  /*                                                                       */  /*    module_init     :: A function used to initialize (not create) a    */  /*                       new module object.                              */  /*                                                                       */  /*    module_done     :: A function used to finalize (not destroy) a     */  /*                       given module object                             */  /*                                                                       */  /*    get_interface   :: Queries a given module for a specific           */  /*                       interface by name.                              */  /*                                                                       */  typedef struct  FT_Module_Class_  {    FT_ULong               module_flags;    FT_Long                module_size;    const FT_String*       module_name;    FT_Fixed               module_version;    FT_Fixed               module_requires;    const void*            module_interface;    FT_Module_Constructor  module_init;    FT_Module_Destructor   module_done;    FT_Module_Requester    get_interface;  } FT_Module_Class;  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    FT_Add_Module                                                      */  /*                                                                       */  /* <Description>                                                         */  /*    Adds a new module to a given library instance.                     */  /*                                                                       */  /* <InOut>                                                               */  /*    library :: A handle to the library object.                         */  /*                                                                       */  /* <Input>                                                               */  /*    clazz   :: A pointer to class descriptor for the module.           */  /*                                                                       */  /* <Return>                                                              */  /*    FreeType error code.  0 means success.                             */  /*                                                                       */  /* <Note>                                                                */  /*    An error will be returned if a module already exists by that name, */  /*    or if the module requires a version of FreeType that is too great. */  /*                                                                       */  FT_EXPORT( FT_Error )  FT_Add_Module( FT_Library              library,                 const FT_Module_Class*  clazz );  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    FT_Get_Module                                                      */  /*                                                                       */  /* <Description>                                                         */  /*    Finds a module by its name.                                        */  /*                                                                       */  /* <Input>                                                               */  /*    library     :: A handle to the library object.                     */  /*                                                                       */  /*    module_name :: The module's name (as an ASCII string).             */  /*                                                                       */  /* <Return>                                                              */  /*    A module handle.  0 if none was found.                             */  /*                                                                       */  /* <Note>                                                                */  /*    FreeType's internal modules aren't documented very well, and you   */  /*    should look up the source code for details.                        */  /*                                                                       */  FT_EXPORT( FT_Module )  FT_Get_Module( FT_Library   library,                 const char*  module_name );  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    FT_Remove_Module                                                   */  /*                                                                       */  /* <Description>                                                         */  /*    Removes a given module from a library instance.                    */  /*                                                                       */  /* <InOut>                                                               */  /*    library :: A handle to a library object.                           */  /*                                                                       */  /* <Input>                                                               */  /*    module  :: A handle to a module object.                            */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -