Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-18 10:28:15

0001 /* Pango
0002  * pango-modules.h:
0003  *
0004  * Copyright (C) 1999 Red Hat Software
0005  *
0006  * This library is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Library General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2 of the License, or (at your option) any later version.
0010  *
0011  * This library is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014  * Library General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU Library General Public
0017  * License along with this library; if not, write to the
0018  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
0019  * Boston, MA 02111-1307, USA.
0020  */
0021 
0022 #ifndef __PANGO_MODULES_H__
0023 #define __PANGO_MODULES_H__
0024 
0025 #include <pango/pango-engine.h>
0026 
0027 G_BEGIN_DECLS
0028 
0029 /* All of this is deprecated and entirely useless for bindings.
0030  * Leave it out of the gir file.
0031  */
0032 #ifndef __GI_SCANNER__
0033 
0034 #ifndef PANGO_DISABLE_DEPRECATED
0035 
0036 typedef struct _PangoMap PangoMap;
0037 typedef struct _PangoMapEntry PangoMapEntry;
0038 
0039 typedef struct _PangoIncludedModule PangoIncludedModule;
0040 
0041 /**
0042  * PangoIncludedModule:
0043  * @list: a function that lists the engines defined in this module.
0044  * @init: a function to initialize the module.
0045  * @exit: a function to finalize the module.
0046  * @create: a function to create an engine, given the engine name.
0047  *
0048  * The `PangoIncludedModule` structure for a statically linked module
0049  * contains the functions that would otherwise be loaded from a dynamically
0050  * loaded module.
0051  *
0052  * Deprecated: 1.38
0053  */
0054 struct _PangoIncludedModule
0055 {
0056   void (*list) (PangoEngineInfo **engines,
0057         int              *n_engines);
0058   void (*init) (GTypeModule      *module);
0059   void (*exit) (void);
0060   PangoEngine *(*create) (const char       *id);
0061 };
0062 
0063 PANGO_DEPRECATED_IN_1_38
0064 PangoMap *     pango_find_map        (PangoLanguage       *language,
0065                       guint                engine_type_id,
0066                       guint                render_type_id);
0067 PANGO_DEPRECATED_IN_1_38
0068 PangoEngine *  pango_map_get_engine  (PangoMap            *map,
0069                       PangoScript          script);
0070 PANGO_DEPRECATED_IN_1_38
0071 void           pango_map_get_engines (PangoMap            *map,
0072                       PangoScript          script,
0073                       GSList             **exact_engines,
0074                       GSList             **fallback_engines);
0075 PANGO_DEPRECATED_IN_1_38
0076 void           pango_module_register (PangoIncludedModule *module);
0077 
0078 #endif /* PANGO_DISABLE_DEPRECATED */
0079 
0080 #endif /* __GI_SCANNER__ */
0081 
0082 G_END_DECLS
0083 
0084 #endif /* __PANGO_MODULES_H__ */