1 | /* Pango |
2 | * pango-modules.h: |
3 | * |
4 | * Copyright (C) 1999 Red Hat Software |
5 | * |
6 | * This library is free software; you can redistribute it and/or |
7 | * modify it under the terms of the GNU Library General Public |
8 | * License as published by the Free Software Foundation; either |
9 | * version 2 of the License, or (at your option) any later version. |
10 | * |
11 | * This library is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | * Library General Public License for more details. |
15 | * |
16 | * You should have received a copy of the GNU Library General Public |
17 | * License along with this library; if not, write to the |
18 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 | * Boston, MA 02111-1307, USA. |
20 | */ |
21 | |
22 | #ifndef __PANGO_MODULES_H__ |
23 | #define __PANGO_MODULES_H__ |
24 | |
25 | #include <pango/pango-engine.h> |
26 | |
27 | G_BEGIN_DECLS |
28 | |
29 | /* All of this is deprecated and entirely useless for bindings. |
30 | * Leave it out of the gir file. |
31 | */ |
32 | #ifndef __GI_SCANNER__ |
33 | |
34 | #ifndef PANGO_DISABLE_DEPRECATED |
35 | |
36 | typedef struct _PangoMap PangoMap; |
37 | typedef struct _PangoMapEntry PangoMapEntry; |
38 | |
39 | typedef struct _PangoIncludedModule PangoIncludedModule; |
40 | |
41 | /** |
42 | * PangoIncludedModule: |
43 | * @list: a function that lists the engines defined in this module. |
44 | * @init: a function to initialize the module. |
45 | * @exit: a function to finalize the module. |
46 | * @create: a function to create an engine, given the engine name. |
47 | * |
48 | * The `PangoIncludedModule` structure for a statically linked module |
49 | * contains the functions that would otherwise be loaded from a dynamically |
50 | * loaded module. |
51 | * |
52 | * Deprecated: 1.38 |
53 | */ |
54 | struct _PangoIncludedModule |
55 | { |
56 | void (*list) (PangoEngineInfo **engines, |
57 | int *n_engines); |
58 | void (*init) (GTypeModule *module); |
59 | void (*exit) (void); |
60 | PangoEngine *(*create) (const char *id); |
61 | }; |
62 | |
63 | PANGO_DEPRECATED_IN_1_38 |
64 | PangoMap * pango_find_map (PangoLanguage *language, |
65 | guint engine_type_id, |
66 | guint render_type_id); |
67 | PANGO_DEPRECATED_IN_1_38 |
68 | PangoEngine * pango_map_get_engine (PangoMap *map, |
69 | PangoScript script); |
70 | PANGO_DEPRECATED_IN_1_38 |
71 | void pango_map_get_engines (PangoMap *map, |
72 | PangoScript script, |
73 | GSList **exact_engines, |
74 | GSList **fallback_engines); |
75 | PANGO_DEPRECATED_IN_1_38 |
76 | void pango_module_register (PangoIncludedModule *module); |
77 | |
78 | #endif /* PANGO_DISABLE_DEPRECATED */ |
79 | |
80 | #endif /* __GI_SCANNER__ */ |
81 | |
82 | G_END_DECLS |
83 | |
84 | #endif /* __PANGO_MODULES_H__ */ |
85 | |